/* ==========================================================================
   BIJU400X â€” hero
   The artwork itself (background, wordmark, the three people) is drawn on the
   WebGL canvas. Everything in this file is the furniture layered over it:
   header, welcome strip, chips, arrows, dot grids.
   ========================================================================== */

@font-face {
  font-family: 'Anton';
  src: url('../../public/fonts/anton-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Oswald';
  src: url('../../public/fonts/oswald-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../../public/fonts/oswald-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../../public/fonts/oswald-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../../public/fonts/oswald-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../../public/fonts/oswald-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink:      #de1b1c;
  --ink-hot:  #ff2a2b;
  --paper:    #ededed;
  --black:    #000;
  --dim:      #8a8a8a;
  --dimmer:   #4e4e4e;

  --ui:  'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --disp:'Anton', 'Arial Narrow', Impact, sans-serif;

  /* the header height also sets the hero's top breathing room */
  --hdr-h: clamp(56px, 7.4vh, 82px);
  --edge:  clamp(14px, 1.55vw, 26px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
html, body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: var(--paper);
  font-family: var(--ui);
  /* the document scrolls now that more scenes follow the hero; sideways
     overflow is CLIPPED, not hidden - overflow-x:hidden promotes body to a
     scroll container, which silently breaks every position:sticky pin in the
     scenes below (the canvas scrolls away and leaves bare background) */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* nothing may paint before the sequence is ready to start on true black */
html.is-booting .furniture,
html.is-booting .hdr { opacity: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.stage-wrap {
  position: fixed; inset: 0;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

#stage {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* ==========================================================================
   Header
   ========================================================================== */

.hdr {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  padding: 0 var(--edge);
  z-index: 20;
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }

.hdr__rule {
  position: absolute; left: 0; right: 0; top: 0;
  width: 100%; height: 100%;
  color: #6d6d6d;
  pointer-events: none;
  overflow: visible;
}
.hdr__rule polyline {
  stroke-dasharray: var(--len, 2000);
  stroke-dashoffset: var(--len, 2000);
}
.is-header .hdr__rule polyline {
  transition: stroke-dashoffset 1.15s var(--ease-out);
  stroke-dashoffset: 0;
}

.hdr__mark {
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
}
.mark-logo {
  display: block;
  height: clamp(55px, 8vw, 90px); /* even bigger */
  width: auto;
  object-fit: contain;
}

.hdr__div {
  width: 1px; height: 42%;
  background: #3a3a3a;
  flex: 0 0 auto;
}

.hdr__roles {
  margin: 0;
  display: grid;
  gap: 1px;
  font-size: clamp(7.5px, .61vw, 9.5px);
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.42;
  flex: 0 0 auto;
}

/* Welcome text — center of the header */
@keyframes hwt-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hwt-appear {
  from { opacity: 0; letter-spacing: .6em; filter: blur(4px); }
  to   { opacity: 1; letter-spacing: .32em; filter: blur(0); }
}

.hdr__welcome-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.8vw, 12px);
  font-size: clamp(8px, 0.7vw, 10.5px);
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  pointer-events: none;
}
/* HELLO — fades up quickly on load */
.hwt-hello {
  opacity: 0;
  animation: hwt-fade-up 0.6s var(--ease-out) 0.4s forwards;
}

/* Icon — appears alongside HELLO */
.hdr__welcome-text .hello-icon {
  color: var(--paper);
  opacity: 0;
  animation: hwt-fade-up 0.5s var(--ease-out) 0.7s forwards;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* WELCOME TO MY WORLD — appears after HELLO with blur expand effect */
.hwt-welcome {
  opacity: 0;
  animation: hwt-appear 0.9s var(--ease-out) 1.1s forwards;
}

.hdr__meta {
  display: flex;
  align-items: center;
  gap: 8px; /* space between whatsapp button and dropdown */
  flex: 0 0 auto;
  margin-left: auto;    /* pushes to the far right */
}

.hdr__btn-whatsapp {
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
  font-family: var(--ui);
  font-size: clamp(8px, 0.7vw, 11px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hdr__btn-whatsapp:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #e53935;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.8);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(229, 57, 53, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}


.hdr__burger { display: none; }

/* staggered arrival ------------------------------------------------------ */
.hdr__mark, .hdr__div, .hdr__roles, .hdr__nav li, .hdr__meta {
  opacity: 0;
  transform: translateY(-9px);
}
.is-header .hdr__mark,
.is-header .hdr__div,
.is-header .hdr__roles,
.is-header .hdr__nav li,
.is-header .hdr__meta {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
}
.is-header .hdr__mark   { transition-delay: .18s; }
.is-header .hdr__div    { transition-delay: .26s; }
.is-header .hdr__roles  { transition-delay: .30s; }
.is-header .hdr__nav li { transition-delay: calc(.36s + var(--i) * .055s); }
.is-header .hdr__meta   { transition-delay: .62s; }

/* ==========================================================================
   Hero furniture
   ========================================================================== */

.furniture {
  position: absolute; inset: 0;
  z-index: 15;
  pointer-events: none;
}

/* --- WELCOME TO MY WORLD: drops in from above ---------------------------
   Sits ABOVE every other layer except the header, and carries its own soft
   dark halo, so it stays legible whatever passes behind it â€” the wordmark,
   the figure's head, or plain black.                                       */
.welcome {
  position: absolute;
  top: var(--welcome-y, 17.5%);
  left: 50%;
  z-index: 4;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .55em;
  white-space: nowrap;
  font-size: var(--welcome-size, 17px);
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 .06em rgba(0, 0, 0, .95),
    0 0 .55em rgba(0, 0, 0, .92),
    0 0 1.4em rgba(0, 0, 0, .75);
  transform: translate(-50%, calc(-140% - 12px));
  opacity: 0;
  filter: blur(6px);
}
.welcome__dots { letter-spacing: .12em; font-size: .96em; }
.is-welcome .welcome {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%);
  /* fast, confident entrance that overshoots a touch, then settles */
  transition:
    transform .82s cubic-bezier(.14, .86, .22, 1.06),
    opacity .34s ease-out,
    filter .5s var(--ease-out);
}

/* --- inverted chips ----------------------------------------------------- */
.chip {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: .30em .5em .24em;
  background: var(--paper);
  color: #060606;
  font-size: var(--chip-size, 13px);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
}
.chip--artist {
  left: var(--artist-x, 1.5%);
  top: var(--artist-y, 68.8%);
  transform: translateX(-118%);
}
.chip--legend {
  left: var(--legend-x, 88.1%);
  top: var(--legend-y, 26.8%);
  transform: translateX(118%);
}
.is-artist .chip--artist,
.is-legend .chip--legend {
  opacity: 1;
  transform: translateX(0);
  transition: transform .78s var(--ease-out), opacity .3s linear;
}

/* --- edge arrows -------------------------------------------------------- */
.arrows {
  display: none;
}

/* --- corner dot grids --------------------------------------------------- */
.grid-dots {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--dot-gap, 6px);
}
.grid-dots--br {
  left: var(--dots-br-x, 98.4%); top: var(--dots-br-y, 95%);
  transform: translate(-100%, -100%);
}
.grid-dots i {
  display: block;
  width: var(--dot-size, 9px);
  height: var(--dot-size, 9px);
  border-radius: 50%;
  background: var(--paper);
  opacity: 0;
  transform: scale(.2);
}
.is-dots .grid-dots i {
  opacity: .95;
  transform: none;
  transition: transform .5s var(--ease-out), opacity .34s linear;
  transition-delay: calc(var(--i) * .022s);
}

/* ==========================================================================
   Mobile menu â€” the burger opens a full-bleed sheet in the artwork's voice
   ========================================================================== */

.menu {
  position: absolute; inset: 0;
  z-index: 18;
  display: grid;
  place-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.is-menu .menu { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu a {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--disp);
  font-size: clamp(38px, 11vw, 64px);
  line-height: 1.06;
  color: var(--ink);
  background-color: var(--ink);
  background-image: url('../../public/tex/grunge.png');
  background-size: 300px;
  background-blend-mode: multiply;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: saturate(1.3) contrast(1.12) brightness(1.15);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .4s ease, transform .55s var(--ease-out);
}
.menu a.is-active, .menu a:hover { filter: saturate(1.5) contrast(1.2) brightness(1.4); }
.is-menu .menu a {
  opacity: 1;
  transform: none;
  transition-delay: calc(.06s + var(--i, 0) * .05s);
}
.menu__tag {
  margin: 26px 0 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  transition: opacity .5s ease .3s;
}
.is-menu .menu__tag { opacity: 1; }

/* ==========================================================================
   Boot / loading â€” deliberately almost invisible
   ========================================================================== */

.boot {
  position: absolute; inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity .5s ease-out, visibility .5s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.boot__bar {
  width: min(148px, 26vw);
  height: 1px;
  background: rgba(255, 255, 255, .13);
  overflow: hidden;
  opacity: 0;
  animation: bootIn .5s ease-out .35s forwards;   /* only if loading is slow */
}
.boot__bar i {
  display: block; height: 100%; width: 0%;
  background: var(--paper);
  transition: width .3s ease-out;
}
@keyframes bootIn { to { opacity: 1; } }

.boot__enter {
  position: absolute;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .28);
  background: transparent;
  color: var(--paper);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  padding: 14px 30px 12px;
  cursor: pointer;
  transition: background .35s, border-color .35s, letter-spacing .35s;
}
.boot__enter:hover { background: var(--ink); border-color: var(--ink); letter-spacing: .4em; }

.fallback {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center; gap: 12px;
}
.fallback p {
  font-family: var(--disp); font-size: 16vw; color: var(--ink); margin: 0;
}
.fallback small { color: var(--dim); letter-spacing: .2em; text-transform: uppercase; }

/* ==========================================================================
   Small screens â€” the composition is landscape by nature, so on a phone the
   furniture thins out rather than piling up on top of the wordmark.
   ========================================================================== */

@media (max-width: 760px) {
  .hdr { gap: 10px; }
  .hdr__div, .hdr__roles { display: none; }
  .hdr__nav { display: none; }
  .hdr__burger {
    display: grid;
    gap: 5px;
    margin-left: auto;
    appearance: none; border: 0; background: none; padding: 6px 0;
    cursor: pointer;
  }
  .hdr__burger span {
    display: block; width: 26px; height: 1.5px; background: var(--paper);
    transition: transform .4s var(--ease-out);
  }
  .hdr__burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .hdr__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

  .arrows { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome, .chip, .arrows i, .grid-dots i,
  .hdr__mark, .hdr__div, .hdr__roles, .hdr__nav li, .hdr__meta {
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}


/* ==========================================================================
   BIJU400X content panels â€” accessible DOM sections beneath the cinematic
   experience. The WebGL scenes remain untouched; these panels make the
   portfolio useful for search, sharing and direct navigation.
   ========================================================================== */
.biju-info {
  position: relative; min-height: 70vh; padding: 12vh var(--edge);
  background: #000; border-top: 1px solid #181818;
  display: grid; place-items: center;
}
.biju-info__inner { width: min(980px, 100%); }
.biju-info h2 {
  margin: .2em 0 .35em; font-family: var(--disp);
  font-size: clamp(48px, 9vw, 132px); line-height: .88;
  text-transform: uppercase; letter-spacing: -.015em;
}
.biju-info p:not(.universe__over) {
  max-width: 720px; color: var(--dim); font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.55; letter-spacing: .03em;
}
.biju-info__cta {
  display: inline-block; margin-top: 1rem; padding: .85rem 1.1rem;
  border: 1px solid #444; color: var(--paper); text-decoration: none;
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px;
}
.biju-info__cta:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 760px) {
  .biju-info { min-height: 62vh; padding: 10vh 7vw; }
  .biju-info h2 { font-size: clamp(42px, 13vw, 78px); }
}

/* ==========================================================================
   Contact Page â€” full-screen, slides in from right
   ========================================================================== */

.cp {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #060606;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .52s var(--ease-out);
}
.cp.is-open { transform: translateX(0); }
.cp[hidden] { display: none; }

/* Top bar */
.cp__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
  height: var(--hdr-h);
  border-bottom: 1px solid #1a1a1a;
  flex-shrink: 0;
}
.cp__brand {
  font-family: var(--disp);
  font-size: clamp(17px, 1.9vw, 26px);
  letter-spacing: .04em;
  color: var(--ink);
  background-color: var(--ink);
  background-image: url('../../public/tex/grunge.png');
  background-size: 260px;
  background-blend-mode: multiply;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: saturate(1.3) contrast(1.15) brightness(1.2);
}
.cp__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: var(--dim);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 9px 18px 8px;
  cursor: pointer;
  transition: border-color .3s, color .3s, gap .3s;
}
.cp__back:hover {
  border-color: var(--ink);
  color: var(--paper);
  gap: 12px;
}

/* Two-column body */
.cp__body {
  flex: 1;
  display: grid;
  grid-template-columns: 38% 1fr;
  overflow: hidden;
}

/* Left info panel */
.cp__info {
  border-right: 1px solid #141414;
  background: linear-gradient(170deg, #080808 0%, #110000 100%);
  overflow-y: auto;
  padding: clamp(40px, 7vh, 80px) clamp(28px, 4vw, 60px);
}
.cp__info-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 380px;
}
.cp__over {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ink);
}
.cp__title {
  margin: 0;
  font-family: var(--disp);
  font-size: clamp(44px, 6vw, 82px);
  line-height: .87;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--paper);
}
.cp__desc {
  margin: 0;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--dimmer);
  line-height: 1.65;
  letter-spacing: .025em;
  max-width: 340px;
}
.cp__details {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cp__details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp__detail-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.cp__detail-val {
  font-size: 13px;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .28s;
}
.cp__detail-val:hover { color: var(--ink); }
.cp__divider {
  height: 1px;
  background: #1e1e1e;
  margin: 6px 0;
}
.cp__social-label {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.cp__socials {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp__socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dimmer);
  transition: color .28s, gap .28s;
}
.cp__socials a:hover { color: var(--ink); gap: 14px; }
.cp__socials svg { flex-shrink: 0; }

/* Right form */
.cp__form-wrap {
  overflow-y: auto;
  padding: clamp(40px, 7vh, 80px) clamp(28px, 5vw, 72px);
}
.cp__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
}
.cp__form-heading { margin-bottom: 4px; }
.cp__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cp__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp__field--full { grid-column: 1 / -1; }
.cp__field label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--dim);
}
.cp__field label span { color: var(--ink); }
.cp__field input,
.cp__field select,
.cp__field textarea {
  appearance: none;
  background: #0e0e0e;
  border: 1px solid #222;
  border-bottom-color: #333;
  color: var(--paper);
  font-family: var(--ui);
  font-size: 14px;
  letter-spacing: .03em;
  padding: 13px 16px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
  width: 100%;
}
.cp__field input::placeholder,
.cp__field textarea::placeholder { color: #2e2e2e; }
.cp__field select { cursor: pointer; }
.cp__field select option { background: #111; color: var(--paper); }
.cp__field input:focus,
.cp__field select:focus,
.cp__field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 2px 0 0 var(--ink), 0 0 0 3px rgba(222,27,28,.09);
}
.cp__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.cp__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  appearance: none;
  background: var(--ink);
  border: none;
  color: #fff;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .38em;
  text-transform: uppercase;
  padding: 16px 32px 14px;
  cursor: pointer;
  transition: background .28s, gap .28s, letter-spacing .28s, opacity .28s;
}
.cp__submit:hover { background: var(--ink-hot); gap: 18px; letter-spacing: .44em; }
.cp__submit:disabled { opacity: .5; cursor: not-allowed; }
.cp__reply-note {
  margin: 0;
  font-size: 10px;
  color: var(--dimmer);
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Success */
.cp__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 40px 0;
  animation: cpSuccessIn .55s var(--ease-out) forwards;
}
@keyframes cpSuccessIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.cp__success-icon { margin-bottom: 4px; }
.cp__success h3 {
  margin: 0;
  font-family: var(--disp);
  font-size: clamp(32px, 4vw, 52px);
  text-transform: uppercase;
  color: var(--paper);
}
.cp__success p {
  margin: 0;
  font-size: 15px;
  color: var(--dim);
  letter-spacing: .06em;
}
.cp__back-btn {
  margin-top: 8px;
  appearance: none;
  background: none;
  border: 1px solid #2a2a2a;
  color: var(--dim);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 12px 22px 10px;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.cp__back-btn:hover { border-color: var(--ink); color: var(--paper); }

/* Mobile */
@media (max-width: 760px) {
  .cp__body { grid-template-columns: 1fr; overflow-y: auto; }
  .cp__info {
    border-right: none;
    border-bottom: 1px solid #141414;
    padding: 32px 24px;
    overflow-y: visible;
  }
  .cp__info-inner { max-width: 100%; }
  .cp__title { font-size: clamp(42px, 14vw, 64px); }
  .cp__form-wrap { padding: 28px 24px 48px; }
  .cp__row { grid-template-columns: 1fr; }
  .cp__actions { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Mobile Optimization — comprehensive improvements for phones
   ========================================================================== */

/* Remove tap highlight on all interactive elements */
* { -webkit-tap-highlight-color: transparent; }

/* Smooth scrolling on iOS */
html { -webkit-overflow-scrolling: touch; }

/* Safe area insets for notched phones (iPhone X+) */
.hdr {
  padding-left: max(var(--edge), env(safe-area-inset-left));
  padding-right: max(var(--edge), env(safe-area-inset-right));
}
.cp__bar {
  padding-left: max(var(--edge), env(safe-area-inset-left));
  padding-right: max(var(--edge), env(safe-area-inset-right));
}

@media (max-width: 760px) {

  /* ---- Header ---- */
  :root { --hdr-h: 56px; }

  .hdr__mark { flex: 1; }

  /* Bigger burger touch target (44px minimum recommended) */
  .hdr__burger {
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2px;
  }
  .hdr__burger span {
    width: 28px;
    height: 2px;
  }

  /* ---- Full-screen mobile menu ---- */
  .menu {
    position: fixed;
    inset: 0;
    z-index: 18;
    display: flex !important; /* override hidden display */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 80px 32px 48px;
    padding-bottom: max(48px, env(safe-area-inset-bottom));
    background: rgba(4, 0, 0, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    text-align: center;
  }
  .menu li {
    border-bottom: 1px solid #141414;
  }
  .menu li:first-child { border-top: 1px solid #141414; }

  /* Bigger tappable nav links */
  .menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    font-size: clamp(28px, 9vw, 44px);
    line-height: 1;
    letter-spacing: .04em;
    padding: 14px 20px;
  }

  /* Contact link — special red treatment */
  .menu a[href="#contact"] {
    color: var(--ink) !important;
    -webkit-text-fill-color: initial !important;
    background: none;
    filter: none;
  }

  /* Hide Anti-Gravity Edge Panel on mobile to prevent obstruction */
  .antigravity-panel {
    display: none !important;
  }

  .menu__tag {
    margin-top: 32px;
    font-size: 9px;
    letter-spacing: .28em;
  }

  /* ---- biju-info sections ---- */
  .biju-info {
    min-height: auto;
    padding: 72px 24px 64px;
  }
  .biju-info h2 {
    font-size: clamp(38px, 12vw, 64px);
    margin-bottom: 16px;
  }
  .biju-info p {
    font-size: 15px;
    line-height: 1.6;
  }
  .biju-info__cta {
    padding: 14px 20px;
    font-size: 11px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }

  /* ---- footer social bar ---- */
  .fin__bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 20px;
  }
  .fin__soc {
    gap: 16px;
    flex-wrap: wrap;
  }
  .fin__soc a,
  .fin__bar > a {
    font-size: 10px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* ---- Contact page on mobile ---- */
  .cp { overflow-y: auto; }
  .cp__bar {
    padding-top: env(safe-area-inset-top, 0px);
    min-height: calc(var(--hdr-h) + env(safe-area-inset-top, 0px));
  }
  .cp__back {
    padding: 10px 14px;
    min-height: 44px;
    font-size: 9px;
  }
  .cp__body {
    display: block;
    overflow-y: visible;
  }
  .cp__info {
    padding: 36px 24px 28px;
    min-height: auto;
    overflow-y: visible;
  }
  .cp__form-wrap {
    padding: 32px 24px max(80px, calc(env(safe-area-inset-bottom) + 48px));
    overflow-y: visible;
  }
  .cp__title {
    font-size: clamp(40px, 13vw, 60px);
    margin-bottom: 8px;
  }
  .cp__field input,
  .cp__field select,
  .cp__field textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    padding: 14px 14px;
    min-height: 48px;
  }
  .cp__submit {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 11px;
    padding: 16px 24px;
  }
  .cp__row { gap: 12px; }
  .cp__form { gap: 16px; }
  .cp__socials { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .cp__socials a { font-size: 10px; }
}

/* Extra small phones */
@media (max-width: 390px) {
  .menu a { font-size: clamp(26px, 8vw, 36px); min-height: 58px; }
  .cp__title { font-size: 36px; }
  .biju-info h2 { font-size: 34px; }
}

/* ==========================================================================
   WhatsApp Booking Form Styles
   ========================================================================== */

.wa-form {
  margin-top: 40px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wa-form__group {
  position: relative;
}

.wa-form__input {
  width: 100%;
  background: rgba(15, 15, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--ui);
  font-size: 14px;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  border-radius: 4px;
}

.wa-form__input:focus {
  border-color: #d8b183;
  background: rgba(25, 25, 25, 0.9);
}

.wa-form__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.wa-form__select {
  appearance: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
}

.wa-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.wa-form__actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.wa-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  flex: 1;
  min-width: 180px;
  border-radius: 4px;
}

.wa-form__btn svg {
  transition: transform 0.3s ease;
}

.wa-form__btn:hover {
  background: #fff;
  color: #000;
}

.wa-form__btn--whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

.wa-form__btn--whatsapp:hover svg {
  transform: scale(1.1);
}

.wa-form__btn--call:hover {
  background: #d8b183;
  border-color: #d8b183;
  color: #000;
}

.wa-form__btn--call:hover svg {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .wa-form__actions {
    flex-direction: column;
  }
  
  .wa-form__input, .wa-form__btn {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Anti-gravity Glassmorphism Container */
.antigravity-panel {
    position: fixed;
    top: 5vh; /* Floating off the top edge */
    right: -280px; /* Hidden off-screen */
    width: 260px;
    height: 90vh; /* Floating off the bottom edge */
    
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    flex-wrap: wrap;
  }
  .fin__soc a,
  .fin__bar > a {
    font-size: 10px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* ---- Contact page on mobile ---- */
  .cp { overflow-y: auto; }
  .cp__bar {
    padding-top: env(safe-area-inset-top, 0px);
    min-height: calc(var(--hdr-h) + env(safe-area-inset-top, 0px));
  }
  .cp__back {
    padding: 10px 14px;
    min-height: 44px;
    font-size: 9px;
  }
  .cp__body {
    display: block;
    overflow-y: visible;
  }
  .cp__info {
    padding: 36px 24px 28px;
    min-height: auto;
    overflow-y: visible;
  }
  .cp__form-wrap {
    padding: 32px 24px max(80px, calc(env(safe-area-inset-bottom) + 48px));
    overflow-y: visible;
  }
  .cp__title {
    font-size: clamp(40px, 13vw, 60px);
    margin-bottom: 8px;
  }
  .cp__field input,
  .cp__field select,
  .cp__field textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    padding: 14px 14px;
    min-height: 48px;
  }
  .cp__submit {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 11px;
    padding: 16px 24px;
  }
  .cp__row { gap: 12px; }
  .cp__form { gap: 16px; }
  .cp__socials { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .cp__socials a { font-size: 10px; }
}

/* Extra small phones */
@media (max-width: 390px) {
  .menu a { font-size: clamp(26px, 8vw, 36px); min-height: 58px; }
  .cp__title { font-size: 36px; }
  .biju-info h2 { font-size: 34px; }
}

/* ==========================================================================
   WhatsApp Booking Form Styles
   ========================================================================== */

.wa-form {
  margin-top: 40px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wa-form__group {
  position: relative;
}

.wa-form__input {
  width: 100%;
  background: rgba(15, 15, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--ui);
  font-size: 14px;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  border-radius: 4px;
}

.wa-form__input:focus {
  border-color: #d8b183;
  background: rgba(25, 25, 25, 0.9);
}

.wa-form__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.wa-form__select {
  appearance: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
}

.wa-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.wa-form__actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.wa-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  flex: 1;
  min-width: 180px;
  border-radius: 4px;
}

.wa-form__btn svg {
  transition: transform 0.3s ease;
}

.wa-form__btn:hover {
  background: #fff;
  color: #000;
}

.wa-form__btn--whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

.wa-form__btn--whatsapp:hover svg {
  transform: scale(1.1);
}

.wa-form__btn--call:hover {
  background: #d8b183;
  border-color: #d8b183;
  color: #000;
}

.wa-form__btn--call:hover svg {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .wa-form__actions {
    flex-direction: column;
  }
  
  .wa-form__input, .wa-form__btn {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Anti-gravity Glassmorphism Container */
.antigravity-panel {
    position: fixed;
    top: 5vh; /* Floating off the top edge */
    right: -280px; /* Hidden off-screen */
    width: 260px;
    height: 90vh; /* Floating off the bottom edge */
    
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Cosmic Neon Borders & Glow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px 0 0 24px;
    box-shadow: -5px 0 25px rgba(0, 242, 254, 0.2);
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, visibility 0.4s ease;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Make visible when triggered by scroll */
.antigravity-panel.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Slide into view when active */
.antigravity-panel.open {
    right: 0;
    box-shadow: -5px 0 40px rgba(0, 242, 254, 0.4);
}

/* Floating Handle/Arrow Button */
.space-toggle {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 70px;
    
    /* Matching Glass look */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 20px 0 0 20px;
    
    color: #00f2fe;
    text-shadow: 0 0 8px #00f2fe;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    box-shadow: -5px 0 15px rgba(0, 242, 254, 0.2);
    transition: all 0.3s ease;
}

/* Pulsing effect on the arrow when closed */
.space-toggle:hover {
    color: #4facfe;
    text-shadow: 0 0 15px #4facfe;
    background: rgba(255, 255, 255, 0.15);
}

/* Navigation Typography */
.space-nav {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.space-nav h3 {
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

/* Interactive Floating Links */
.space-nav a {
    font-family: var(--ui);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: clamp(10px, 1vw, 14px);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
    color: rgba(233, 220, 208, 0.9);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Orbit dot indicator */
.orbit-dot {
    width: 6px;
    height: 6px;
    background-color: #00f2fe;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #00f2fe;
    transition: all 0.3s ease;
}

/* Hover effect: text glow and slight lift up */
.space-nav a:hover,
.space-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.space-nav a:active {
    transform: translateX(4px) scale(0.96);
    transition: all 0.1s;
}

.space-nav a:hover .orbit-dot,
.space-nav a:focus-visible .orbit-dot {
    background-color: #ffffff;
    box-shadow: 0 0 12px #ffffff;
    transform: scale(1.5);
}

/* Space Panel Socials */
.space-socials {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 24px;
}

.space-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(233, 220, 208, 0.9);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.space-socials a:hover,
.space-socials a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.space-socials a:active {
    transform: translateY(0) scale(0.96);
    transition: all 0.1s;
}
