/* ==========================================================================
   GIFS — FULLSCREEN SECTION HUB ARCHITECTURE
   1. Initial screen: 100vh locked, asks user what they need (4 antique plates).
   2. Zero vertical scroll on initial view.
   3. Smooth cinematic transition to the exact requested section.
   ========================================================================== */

/* By default, lock initial view to 100vh */
html.mode-hub,
html.mode-hub body {
  height: 100%;
  height: 100dvh;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: pan-x;
}

/* Sections visibility in hub mode: only active section is visible */
html.mode-hub #site-header,
html.mode-hub #top,
html.mode-hub #vision,
html.mode-hub #services,
html.mode-hub #style-spectrum,
html.mode-hub #approach,
html.mode-hub #project,
html.mode-hub #formats,
html.mode-hub #brief,
html.mode-hub .site-footer {
  display: none !important;
}

/* When a section is opened, unlock page and display it */
html.mode-page {
  overflow-y: auto !important;
  scroll-behavior: smooth;
}
html.mode-page #site-header,
html.mode-page #services,
html.mode-page #style-spectrum,
html.mode-page #approach,
html.mode-page #project,
html.mode-page #formats,
html.mode-page #brief,
html.mode-page .site-footer {
  display: block !important;
}
html.mode-page #top,
html.mode-page #vision {
  display: none !important;
}

/* THE INITIAL HUB SCREEN (100dvh) */
.initial-portal-hub {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 3.5vh, 36px) clamp(16px, 4vw, 40px);
  background: radial-gradient(circle at 50% 40%, #fbf5ea 0%, #ede3cf 60%, #dfd2bb 100%);
  overflow: hidden;
}
html.mode-page .initial-portal-hub {
  display: none !important;
}

/* Atmospheric deco in initial hub */
.hub-deco-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hub-deco-acanthus {
  position: absolute;
  top: -6%;
  right: -5%;
  width: clamp(240px, 32vw, 480px);
  opacity: 0.25;
}
.hub-deco-saint {
  position: absolute;
  bottom: -4%;
  left: 50%;
  transform: translateX(-50%);
  height: clamp(340px, 58vh, 640px);
  opacity: 0.16;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(circle at 50% 45%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, black 40%, transparent 80%);
}
.hub-deco-flower-left {
  position: absolute;
  top: 18%;
  left: 2%;
  width: clamp(80px, 12vw, 160px);
  opacity: 0.85;
  filter: drop-shadow(0 14px 22px rgba(45, 22, 18, 0.16));
  animation: floraBreatheA 9s ease-in-out infinite alternate;
}
.hub-deco-flower-right {
  position: absolute;
  bottom: 12%;
  right: 2%;
  width: clamp(90px, 14vw, 180px);
  opacity: 0.85;
  filter: drop-shadow(0 16px 26px rgba(45, 22, 18, 0.18));
  animation: floraBreatheB 10s ease-in-out infinite alternate;
}

/* Hub Header */
.hub-topbar {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hub-topbar__logo {
  font-family: var(--font-cursive, "Ballet", cursive);
  font-size: clamp(36px, 5.5vw, 54px);
  color: #24191d;
  text-decoration: none;
  line-height: 1;
}
.hub-topbar__badge {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(90, 60, 44, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hub-topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1bb76e;
}

/* Hub Center Asking Question */
.hub-inquiry {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 860px;
  margin: auto 0;
  padding: 0 10px;
}
.hub-inquiry__eyebrow {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #916b45;
  margin-bottom: clamp(6px, 1vh, 12px);
}
.hub-inquiry__title {
  font-family: var(--font-serif, "Prata", Georgia, serif);
  font-size: clamp(32px, 5.4vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #24191d;
  font-weight: 400;
  margin: 0 0 clamp(8px, 1.2vh, 14px);
}
.hub-inquiry__title em {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  color: #703b42;
  font-size: 1.16em;
}
.hub-inquiry__desc {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 1.35;
  color: rgba(36, 25, 29, 0.85);
  max-width: 620px;
  margin: 0 auto;
}

/* 4 Antique Plates Navigation Grid */
.hub-plates-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.5vw, 44px);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.hub-plate-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hub-plate-item:hover {
  transform: translateY(-8px);
}
.hub-plate-item:active {
  transform: scale(0.95);
}
.hub-plate-art {
  width: clamp(82px, 14vw, 155px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 24px rgba(45, 24, 20, 0.16));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.hub-plate-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hub-plate-item:hover .hub-plate-art {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 22px 36px rgba(112, 59, 66, 0.28));
}
.hub-plate-label {
  margin-top: clamp(8px, 1.2vh, 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hub-plate-num {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.15em;
  color: #916b45;
}
.hub-plate-name {
  font-family: var(--font-serif, "Prata", Georgia, serif);
  font-size: clamp(16px, 1.65vw, 22px);
  color: #24191d;
  font-weight: 400;
  transition: color 0.3s ease;
}
.hub-plate-item:hover .hub-plate-name {
  color: #703b42;
}
.hub-plate-hint {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(36, 25, 29, 0.7);
}

/* Hub Footbar */
.hub-footbar {
  position: relative;
  z-index: 10;
  font-size: clamp(11px, 1.1vw, 13px);
  color: rgba(36, 25, 29, 0.6);
  letter-spacing: 0.05em;
}

/* Return to Hub floating button inside opened page mode */
.btn-return-hub {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  background: rgba(255, 252, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(145, 107, 69, 0.3);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-serif, "Prata", serif);
  font-size: 13px;
  color: #703b42;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45, 24, 20, 0.12);
  display: none;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
html.mode-page .btn-return-hub {
  display: inline-flex !important;
}
.btn-return-hub:hover {
  background: #703b42;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hub-plates-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
    margin: 8px auto;
  }
  .hub-plate-art {
    width: 74px;
  }
  .hub-plate-name {
    font-size: 16px;
  }
  .hub-plate-hint {
    font-size: 12px;
  }
  .hub-inquiry__title {
    font-size: 28px;
  }
  .hub-inquiry__desc {
    font-size: 14px;
  }
}
