/* ==========================================================================
   DESIGN INSECTS — OFFICIAL STYLESHEET
   Brand Colors:
     - 70% Deep Black:       #000000 / #0a0a0a
     - 20% Clean White:      #FFFFFF / #F6F5F2
     - 10% Golden Yellow:    #FECE3E
     - Secondary Charcoal:   #2B2A29
   ========================================================================== */

/* 1. Locally Hosted Typography */
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/font-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/font-1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/font-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/font-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/font-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/font-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/font-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/font-7.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/font-8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/font-9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-7.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/font-9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* Brand Color Tokens */
  --color-bg: #000000;
  --color-bg-elevated: #0d0d0d;
  --color-gold: #FECE3E;
  --color-gold-glow: rgba(254, 206, 62, 0.35);
  --color-gold-subtle: rgba(254, 206, 62, 0.12);
  --color-charcoal: #2B2A29;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.72);
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --color-panel-bg: #F6F5F2; /* Subtle warm-white for logo visibility */
  --color-panel-border: rgba(254, 206, 62, 0.28);
  --color-overlay-scrim: rgba(0, 0, 0, 0.55);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Spacing */
  --padding-viewport: clamp(1.25rem, 3.5vw, 3rem);
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-cinematic: cubic-bezier(0.25, 1, 0.5, 1);
  --slide-fade-duration: 1.4s;

  /* Safe Area Insets for Mobile */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
}

/* 2. Global Reset & Viewport Lock */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

/* 3. The Fullscreen Canvas Container */
.viewport-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 4. Slideshow Dual-Layer Cinema Engine */
.slideshow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  perspective: 2000px; /* Essential for 3D Page Turn */
  perspective-origin: center center;
}

.slide-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  backface-visibility: hidden;
  will-change: opacity, transform, clip-path;
}

.slide-layer.active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
  transform: none !important;
  clip-path: none !important;
}

.slide-layer.base-under {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

.slide-picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* STRICT PRESERVATION RULE:
   The actual photograph element is NEVER filtered, NEVER scaled, NEVER color-altered.
   Preserves original aspect ratio, sharpness, colors and resolution. */
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: none !important;
  filter: none !important;
}

/* ==========================================================================
   THE 18 MASTER IMAGE-TO-IMAGE TRANSITIONS
   All motion occurs ONLY at the boundary between outgoing and incoming photos.
   Calibrated for ultra-smooth easing curves on both desktop and mobile.
   ========================================================================== */

/* 1. Circle Open (1.4s) — Circular mask expands from center */
.tr-circle-open-in {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animCircleOpen 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: clip-path;
}
@keyframes animCircleOpen {
  0%   { clip-path: circle(0% at 50% 50%); -webkit-clip-path: circle(0% at 50% 50%); }
  100% { clip-path: circle(150% at 50% 50%); -webkit-clip-path: circle(150% at 50% 50%); }
}

/* 2. Circle Close (1.4s) — Outgoing circular mask contracts to center */
.tr-circle-close-out {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animCircleClose 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: clip-path;
}
@keyframes animCircleClose {
  0%   { clip-path: circle(150% at 50% 50%); -webkit-clip-path: circle(150% at 50% 50%); }
  100% { clip-path: circle(0% at 50% 50%); -webkit-clip-path: circle(0% at 50% 50%); }
}

/* 6. Diagonal Split (1.4s) — Angular diagonal reveal across screen */
.tr-diagonal-split-in {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animDiagonalSplit 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: clip-path;
}
@keyframes animDiagonalSplit {
  0%   { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); -webkit-clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 220% 0, 100% 220%, 0 100%); -webkit-clip-path: polygon(0 0, 220% 0, 100% 220%, 0 100%); }
}

/* 7. Horizontal Wipe (1.35s) — Left to right horizontal curtain mask */
.tr-horizontal-wipe-in {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animHorizontalWipe 1.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: clip-path;
}
@keyframes animHorizontalWipe {
  0%   { clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); -webkit-clip-path: inset(0 0% 0 0); }
}

/* 8. Vertical Wipe (1.35s) — Top to bottom vertical curtain mask */
.tr-vertical-wipe-in {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animVerticalWipe 1.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: clip-path;
}
@keyframes animVerticalWipe {
  0%   { clip-path: inset(0 0 100% 0); -webkit-clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0% 0); -webkit-clip-path: inset(0 0 0% 0); }
}

/* 9. Iris Reveal (1.4s) — Smooth camera aperture iris opening */
.tr-iris-reveal-in {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animIrisReveal 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: clip-path;
}
@keyframes animIrisReveal {
  0%   { clip-path: circle(0% at 50% 50%); -webkit-clip-path: circle(0% at 50% 50%); }
  100% { clip-path: circle(150% at 50% 50%); -webkit-clip-path: circle(150% at 50% 50%); }
}

/* 10. 3D Page Turn (1.5s) — Outgoing photo album page turns on left hinge */
.tr-page-turn-out {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  transform-origin: left center !important;
  -webkit-transform-origin: left center !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform-style: preserve-3d !important;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.6);
  animation: animPageTurn 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: transform;
}
@keyframes animPageTurn {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(-90deg); }
}

/* 11. Film Strip Reveal (1.5s) — Outgoing frame advances left, incoming follows */
.tr-film-strip-out {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
  animation: animFilmStripOut 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: transform;
}
.tr-film-strip-in {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animFilmStripIn 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: transform;
}
@keyframes animFilmStripOut {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
@keyframes animFilmStripIn {
  0%   { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* 12. Cross Dissolve (1.4s) — Pure opacity blend of original photos */
.tr-cross-dissolve-out {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
  animation: animFadeOut 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: opacity;
}
.tr-cross-dissolve-in {
  opacity: 0 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animFadeIn 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: opacity;
}

/* 13. Quick Dissolve (1.1s) — Snappy yet silky opacity blend */
.tr-quick-dissolve-out {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
  animation: animFadeOut 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: opacity;
}
.tr-quick-dissolve-in {
  opacity: 0 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animFadeIn 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: opacity;
}

@keyframes animFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes animFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* 14. Shutter Reveal (1.35s) — Horizontal shutter opens vertically from center */
.tr-shutter-reveal-in {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animShutterReveal 1.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: clip-path;
}
@keyframes animShutterReveal {
  0%   { clip-path: inset(50% 0 50% 0); -webkit-clip-path: inset(50% 0 50% 0); }
  100% { clip-path: inset(0% 0 0% 0); -webkit-clip-path: inset(0% 0 0% 0); }
}

/* 16. Diamond Reveal (1.4s) — Expanding diamond mask from center */
.tr-diamond-reveal-in {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animDiamondReveal 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: clip-path;
}
@keyframes animDiamondReveal {
  0%   { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); -webkit-clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); }
  100% { clip-path: polygon(50% -100%, 200% 50%, 50% 200%, -100% 50%); -webkit-clip-path: polygon(50% -100%, 200% 50%, 50% 200%, -100% 50%); }
}

/* 17. Split Curtain (1.4s) — Two halves open from vertical center line */
.tr-split-curtain-in {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 3 !important;
  animation: animSplitCurtain 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: clip-path;
}
@keyframes animSplitCurtain {
  0%   { clip-path: inset(0 50% 0 50%); -webkit-clip-path: inset(0 50% 0 50%); }
  100% { clip-path: inset(0 0% 0 0%); -webkit-clip-path: inset(0 0% 0 0%); }
}

/* ==========================================================================
   MULTI-PANEL SLICE ENGINE (Doorway, Venetian, Grid, Multi-Panel, Mosaic)
   All panels display the untouched original photograph in pixel-perfect slices.
   ========================================================================== */
.transition-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
.transition-stage.active {
  display: block;
}

.slice-panel {
  position: absolute;
  overflow: hidden;
  will-change: transform, opacity, clip-path;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.slice-inner {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 3. Doorway Split Panels (1.5s) */
.door-panel-left {
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  animation: doorSplitLeft 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.door-panel-right {
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  animation: doorSplitRight 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes doorSplitLeft {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
@keyframes doorSplitRight {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(100%, 0, 0); }
}

/* 5. Venetian Blinds Slices (1.4s) — Vertical slats open sequentially */
.venetian-slat {
  top: 0;
  height: 100%;
  animation: venetianWipe 0.95s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}
@keyframes venetianWipe {
  0%   { opacity: 0; clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
  100% { opacity: 1; clip-path: inset(0 0% 0 0); -webkit-clip-path: inset(0 0% 0 0); }
}

/* 4. Grid Reveal Tiles (1.5s) — Sequential square tiles */
.grid-tile {
  animation: gridTileReveal 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}
@keyframes gridTileReveal {
  0%   { opacity: 0; clip-path: inset(100% 0 0 0); -webkit-clip-path: inset(100% 0 0 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); }
}

/* 15. Multi-Panel Reveal (1.5s) — 5 horizontal panels glide in sequentially */
.horizontal-panel {
  left: 0;
  width: 100%;
  animation: hPanelGlide 1.0s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}
@keyframes hPanelGlide {
  0%   { opacity: 0; transform: translate3d(-100%, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* 18. Mosaic Reveal (1.5s) — Curated artistic rectangular sections */
.mosaic-section {
  animation: mosaicOpen 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}
@keyframes mosaicOpen {
  0%   { opacity: 0; clip-path: inset(100% 0 0 0); -webkit-clip-path: inset(100% 0 0 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); }
}

/* 5. Architectural Corner Marks (+) */
.grid-mark {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 8;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.grid-mark::before, .grid-mark::after {
  content: '';
  position: absolute;
  background-color: var(--color-gold);
}

.grid-mark::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 1px;
}

.grid-mark::after {
  top: 0;
  left: 6px;
  width: 1px;
  height: 14px;
}

.grid-mark-tl { top: calc(var(--padding-viewport) + var(--sat)); left: calc(var(--padding-viewport) + var(--sal)); }
.grid-mark-tr { top: calc(var(--padding-viewport) + var(--sat)); right: calc(var(--padding-viewport) + var(--sar)); }
.grid-mark-bl { bottom: calc(var(--padding-viewport) + var(--sab)); left: calc(var(--padding-viewport) + var(--sal)); }
.grid-mark-br { bottom: calc(var(--padding-viewport) + var(--sab)); right: calc(var(--padding-viewport) + var(--sar)); }

/* 6. Header Section: Brand Panel & Coordinates */
.header-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(var(--padding-viewport) + var(--sat))
           calc(var(--padding-viewport) + var(--sar))
           1rem
           calc(var(--padding-viewport) + var(--sal));
  width: 100%;
}

/* Official Logo Panel:
   Custom-tailored warm-white rectangular panel to ensure dark charcoal wordmark visibility
   while maintaining original aspect ratio and luxury aesthetic */
.brand-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-panel-bg);
  border: 1px solid var(--color-panel-border);
  padding: 10px 18px;
  border-radius: 3px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45),
              0 1px 3px rgba(254, 206, 62, 0.2);
  transition: transform 0.4s var(--transition-smooth),
              box-shadow 0.4s var(--transition-smooth),
              border-color 0.4s var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.brand-panel:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
              0 0 16px var(--color-gold-glow);
}

.brand-panel-link {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(34px, 4.2vw, 52px);
  max-width: 220px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* Studio Identity & Coordinates (Top Right) */
.studio-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(43, 42, 41, 0.65);
  border: 1px solid rgba(254, 206, 62, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text-primary);
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  background-color: var(--color-gold);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px var(--color-gold);
}

.pulse-beacon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
  opacity: 0.8;
  animation: beaconPulse 2.2s infinite var(--transition-smooth);
}

@keyframes beaconPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.studio-submeta {
  color: var(--color-text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

/* 7. Under Construction Editorial Typography Lockup (Bottom-Centred) */
.hero-content {
  position: absolute;
  bottom: clamp(1.8rem, 4.5vh, 3.2rem);
  left: 0;
  right: 0;
  width: 100%;
  margin: 0 auto;
  padding: 0 calc(1.5rem + var(--sar, 0px)) calc(var(--sab, 0px)) calc(1.5rem + var(--sal, 0px));
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}

.editorial-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  opacity: 1;
  transform: translateY(0);
  animation: editorialEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes editorialEntrance {
  0% {
    opacity: 0.1;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Small, white, uppercase typography */
.editorial-prefix {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  font-weight: 500;
  letter-spacing: clamp(0.24em, 0.35vw, 0.32em);
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 clamp(0.25rem, 0.5vh, 0.35rem) 0;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.65);
}

/* Slightly larger, bold golden-yellow typography (#FECE3E) */
.editorial-title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  font-weight: 700;
  letter-spacing: clamp(0.14em, 0.22vw, 0.18em);
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0;
  padding: 0;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 2px 12px rgba(0, 0, 0, 0.65);
}

/* Thin, elegant golden-yellow horizontal accent line underneath */
.editorial-line {
  display: block;
  width: clamp(42px, 5.5vw, 64px);
  height: 1.5px;
  background-color: var(--color-gold);
  margin-top: clamp(0.5rem, 0.9vh, 0.7rem);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(254, 206, 62, 0.35);
}

/* 8. Bottom Dock: Progress, Counter & Minimalist Controls */
.bottom-dock {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0
           calc(var(--padding-viewport) + var(--sar))
           calc(var(--padding-viewport) + var(--sab))
           calc(var(--padding-viewport) + var(--sal));
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Sleek Synchronized Progress Bar */
.progress-container {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold);
  will-change: width;
}

/* Bottom Controls Row */
.dock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Left: Counter & Slide Descriptor */
.dock-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.slide-counter {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.slide-counter .current-num {
  color: var(--color-gold);
  min-width: 1.8ch;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.slide-counter .counter-divider {
  color: var(--color-text-muted);
  font-weight: 300;
}

.slide-counter .total-num {
  color: var(--color-text-secondary);
}

.slide-caption {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Right: Subtle Navigation Controls */
.dock-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.control-btn {
  background: rgba(43, 42, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-text-primary);
  width: clamp(38px, 4vw, 44px);
  height: clamp(38px, 4vw, 44px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.25s var(--transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.control-btn:hover {
  background: rgba(254, 206, 62, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--color-gold-glow);
}

.control-btn:active {
  transform: scale(0.94);
}

.control-btn:focus-visible {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-gold);
}

.control-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* 11. Staggered Entrance Animations */
.fade-in-entry {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--transition-smooth),
              transform 0.9s var(--transition-smooth);
}

.page-ready .fade-in-entry {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* 12. Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .editorial-lockup {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .pulse-beacon::after {
    animation: none !important;
  }
}

/* 13. Responsive Media Queries */
@media (max-width: 992px) {
  .slide-caption {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --padding-viewport: 1.25rem;
  }
  
  .header-bar {
    align-items: center;
  }

  .brand-panel {
    padding: 8px 14px;
  }

  .brand-logo {
    height: 34px;
    max-width: 170px;
  }

  .studio-meta {
    font-size: 0.65rem;
  }

  .studio-submeta {
    display: none;
  }

  .hero-content {
    bottom: clamp(1.4rem, 3.8vh, 2.2rem);
  }

  .editorial-prefix {
    font-size: 0.64rem;
    letter-spacing: 0.26em;
  }

  .editorial-title {
    font-size: clamp(0.85rem, 3.8vw, 1.05rem);
    letter-spacing: 0.14em;
  }

  .editorial-line {
    width: 38px;
    height: 1.5px;
    margin-top: 0.45rem;
  }

  .control-btn {
    width: 36px;
    height: 36px;
  }

  .dock-controls {
    gap: 0.45rem;
  }

  .grid-mark {
    display: none;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  /* Mobile Landscape Mode Optimizations */
  .header-bar {
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
  }
  .brand-logo {
    height: 28px;
  }
  .hero-content {
    bottom: 0.65rem;
  }
  .editorial-prefix {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    margin-bottom: 0.15rem;
  }
  .editorial-title {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }
  .editorial-line {
    width: 32px;
    margin-top: 0.35rem;
  }
  .bottom-dock {
    padding-bottom: 0.5rem;
  }
}

/* ==========================================================================
   14. COMPACT WHITE CONTACT SIDE PANEL & TOP-RIGHT HAMBURGER BUTTON
   ========================================================================== */

/* Top-Right Hamburger Toggle Button (3 Lines) */
.hamburger-btn {
  position: fixed;
  top: calc(clamp(1.2rem, 3.2vw, 2.4rem) + var(--sat, 0px));
  right: calc(clamp(1.2rem, 3.2vw, 2.4rem) + var(--sar, 0px));
  z-index: 92;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(18, 18, 18, 0.55);
  border: 1px solid rgba(254, 206, 62, 0.3);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--transition-smooth), box-shadow 0.3s ease;
}

.hamburger-btn:hover {
  background: rgba(18, 18, 18, 0.82);
  border-color: var(--color-gold);
  box-shadow: 0 0 14px rgba(254, 206, 62, 0.35);
  transform: scale(1.05);
}

.hamburger-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.hamburger-bar {
  display: block;
  width: 19px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.hamburger-btn:hover .hamburger-bar {
  background-color: var(--color-gold);
}

/* When the contact panel is open, the hamburger button gracefully fades out
   so there is NEVER two close buttons visible on screen at once. */
.hamburger-btn.is-active,
.contact-open .hamburger-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transform: scale(0.85);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Subtle Transparent Backdrop for Dismissal */
.contact-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease;
}

.contact-panel-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Compact White Floating Contact Card
   Positions directly at the top right, seamlessly connected with the 3-line menu position */
.contact-panel {
  position: fixed;
  top: calc(clamp(1.2rem, 3.2vw, 2.4rem) + var(--sat, 0px));
  right: calc(clamp(1.2rem, 3.2vw, 2.4rem) + var(--sar, 0px));
  z-index: 100;
  width: 360px;
  max-width: 400px;
  min-width: 300px;
  height: auto;
  max-height: calc(100vh - 2 * (clamp(1.2rem, 3.2vw, 2.4rem) + var(--sat, 0px)));
  background: #FFFFFF;
  color: #171717;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 26px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  user-select: text;
  -webkit-user-select: text;
  transform: translate3d(calc(100% + 40px), 0, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 400ms;
  will-change: transform, opacity;
}

.contact-panel.is-open,
.contact-panel:target {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Custom Scrollbar if ever needed */
.contact-panel::-webkit-scrollbar {
  width: 5px;
}
.contact-panel::-webkit-scrollbar-thumb {
  background: #E0E0E0;
  border-radius: 4px;
}

/* Header Row: Label + Close Icon */
.contact-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.contact-panel-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #FECE3E;
  text-transform: uppercase;
}

.contact-close-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #171717;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.contact-close-btn:hover {
  color: #FECE3E;
  background-color: rgba(254, 206, 62, 0.12);
  transform: rotate(90deg);
}

.contact-close-btn:focus-visible {
  outline: 2px solid #FECE3E;
}

/* Main Heading */
.contact-panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.8vw, 1.65rem);
  font-weight: 700;
  color: #171717;
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Supporting Text */
.contact-panel-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #777777;
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

/* Thin Light-Grey Separator */
.contact-panel-divider {
  height: 1px;
  background-color: #EFEFEF;
  margin: 0 0 1.25rem 0;
}

/* Contact Information Block */
.contact-panel-items {
  display: flex;
  flex-direction: column;
}

.contact-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0.15rem 0;
}

.contact-panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(254, 206, 62, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-panel-icon svg {
  display: block;
}

.contact-panel-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-panel-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #777777;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-panel-link {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1vw, 0.92rem);
  font-weight: 600;
  color: #171717;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

.contact-panel-address {
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
  font-size: clamp(0.82rem, 0.95vw, 0.88rem);
  color: #222222;
}

.contact-panel-link:hover {
  color: #FECE3E;
  text-decoration: underline;
}

.contact-panel-link:focus-visible {
  outline: 2px solid #FECE3E;
  outline-offset: 2px;
}

.contact-item-divider {
  height: 1px;
  background-color: #F4F4F4;
  margin: 0.65rem 0;
}

/* Mobile & Tablet Responsive Adaptations */
@media (max-width: 768px) {
  .contact-panel {
    top: calc(clamp(0.9rem, 2.5vw, 1.4rem) + var(--sat, 0px));
    right: calc(clamp(0.8rem, 2.5vw, 1.2rem) + var(--sar, 0px));
    width: min(88vw, 360px);
    max-width: 360px;
    min-width: auto;
    padding: 22px 18px;
    max-height: calc(100vh - 2 * (clamp(0.9rem, 2.5vw, 1.4rem) + var(--sat, 0px)));
    transform: translate3d(calc(100% + 24px), 0, 0);
  }

  .contact-panel.is-open,
  .contact-panel:target {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transform: translate3d(0, 0, 0) !important;
  }
}
