/* ================================================================
   Poncol Jaya Aluminium
   Modern sidebar layout | CSS Grid | pure-CSS carousel | a11y
   ================================================================ */

/* ── 1. Design tokens ─────────────────────────────────────────── */
:root {
  --brand:       #228896;
  --brand-dk:    #1a6d79;
  --brand-lt:    #2bb3c6;
  --brand-pale:  #eaf5f7;
  --accent:      #ee254d;   /* reddish-pink – logo brand name only */
  --accent-lt:   #ff8da0;   /* lighter pink for brand-name shimmer animation */
  --accent-glow: rgba(238,37,77,.30);  /* semi-transparent red for glow elements */

  --text:        #1a1a1a;
  --text-2:      #3d3d3d;
  --text-muted:  #5f6b7a;
  --bg:          #f4f6f8;
  --surface:     #ffffff;
  --border:      #dde2e8;

  --sidebar-w:   300px;

  --r-sm: 4px;
  --r:    10px;
  --r-lg: 18px;

  --sh-sm: 0 1px 4px rgba(0,0,0,.09);
  --sh:    0 4px 20px rgba(0,0,0,.11);
  --sh-lg: 0 10px 42px rgba(0,0,0,.17);

  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  .24s;

  --font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ── 2. Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* html holds the base background colour so z-index:-1 children of body remain visible */
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
  background: transparent;       /* original neutral grey from html, no blue tint */
  isolation: isolate;            /* new stacking context so z-index:-1 page-bg is visible */
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-dk); }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
p { margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: var(--r-sm); }

/* ── 3. Icomoon icon font ─────────────────────────────────────── */
@font-face {
  font-family: 'icomoon';
  src: url('/fonts/icomoon/icomoon.eot?j7cvds');
  src: url('/fonts/icomoon/icomoon.eot?j7cvds#iefix') format('embedded-opentype'),
       url('/fonts/icomoon/icomoon.ttf?j7cvds')        format('truetype'),
       url('/fonts/icomoon/icomoon.woff?j7cvds')       format('woff'),
       url('/fonts/icomoon/icomoon.svg?j7cvds#icomoon') format('svg');
  font-weight: normal; font-style: normal; font-display: swap;
}
[class^='icon-'], [class*=' icon-'] {
  font-family: 'icomoon' !important;
  font-style: normal; font-weight: normal; font-variant: normal;
  text-transform: none; line-height: 1; speak: never;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.icon-phone::before        { content: '\e942'; }
.icon-map::before          { content: '\e948'; }
.icon-globe::before        { content: '\e9c9'; }
.icon-circle-right::before { content: '\ea42'; }
.icon-facebook::before     { content: '\ea91'; }
.icon-instagram::before    { content: '\ea92'; }
.icon-whatsapp::before     { content: '\ea93'; }

/* ── 4. Keyframes ─────────────────────────────────────────────── */
@keyframes heroSlide {
  0%,  27%  { transform: translateX(0);      }
  30%, 57%  { transform: translateX(-100%);  }
  60%, 87%  { transform: translateX(-200%);  }
  90%,100%  { transform: translateX(0);      }
}
@keyframes shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position:  700px 0; }
}
@keyframes imgReveal {
  0%   { opacity:0; transform: scale(1.06) translateY(12px); }
  100% { opacity:1; transform: scale(1)    translateY(0);    }
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0);    }
}
@keyframes slideInLeft {
  from { opacity:0; transform: translateX(-16px); }
  to   { opacity:1; transform: translateX(0);     }
}
@keyframes waveRoll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── 4b. Sidebar animation keyframes ─────────────────────────── */
@keyframes sidebarGlow {
  0%, 100% { background-position: 0%   50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes sidebarAccentSlide {
  0%   { background-position: 0%   0; }
  100% { background-position: 200% 0; }
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0px,   0px)  scale(1);    }
  33%       { transform: translate(18px, -32px) scale(1.10); }
  66%       { transform: translate(-12px, 24px) scale(0.93); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0px,   0px)  scale(1);    }
  40%       { transform: translate(-22px, 28px) scale(1.15); }
  70%       { transform: translate(16px, -18px) scale(0.90); }
}
/* Light beam that sweeps across the sidebar */
@keyframes sidebarBeam {
  0%   { left: -80px;             opacity: 0; }
  8%   {                           opacity: 1; }
  92%  {                           opacity: 1; }
  100% { left: calc(100% + 80px); opacity: 0; }
}
/* Logo glowing drop-shadow pulse */
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0  2px rgba(34,136,150,.10)); }
  50%       { filter: drop-shadow(0 0 14px rgba(34,136,150,.55)); }
}
/* Brand-name shimmer (moves gradient across the text) */
@keyframes brandShimmer {
  0%   { background-position: 200% center; }
  100% { background-position:   0% center; }
}
/* Sidebar border / shadow pulse */
@keyframes sidebarBorderPulse {
  0%, 100% { box-shadow: 2px 0 16px rgba(34,136,150,.10); }
  50%       { box-shadow: 2px 0 36px rgba(34,136,150,.45), 4px 0 60px rgba(43,179,198,.22); }
}

/* ── 4c. Page background animation keyframes ─────────────────── */
/* Diagonal stripe pattern drifting */
@keyframes bgLineDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(60px, 60px); }
}
/* Large orb floating path A */
@keyframes bgFloat1 {
  0%, 100% { transform: translate(  0px,  0px) scale(1);    }
  30%       { transform: translate(-70px, 80px) scale(1.10); }
  65%       { transform: translate( 55px,-45px) scale(0.90); }
}
/* Medium orb floating path B */
@keyframes bgFloat2 {
  0%, 100% { transform: translate(  0px,  0px) scale(1);    }
  40%       { transform: translate( 90px,-60px) scale(1.12); }
  75%       { transform: translate(-50px, 55px) scale(0.88); }
}
/* Small orb floating path C */
@keyframes bgFloat3 {
  0%, 100% { transform: translate( 0px,  0px) scale(1);    }
  50%       { transform: translate(35px,-55px) scale(1.18); }
}
/* Slowly spinning diamond outline */
@keyframes bgSpin {
  from { transform: rotate(  0deg); }
  to   { transform: rotate(360deg); }
}
/* Pulsing ring – scale + opacity */
@keyframes bgRingPulse {
  0%, 100% { transform: scale(1);    opacity: .12; }
  50%       { transform: scale(1.18); opacity: .22; }
}

/* ── 4d. New animation keyframes (council additions) ─────────── */

/* Sidebar orb movement pattern C */
@keyframes orbFloat3 {
  0%, 100% { transform: translate(  0px,   0px) scale(1);    }
  45%       { transform: translate( 22px,  28px) scale(1.09); }
  80%       { transform: translate(-16px, -20px) scale(0.93); }
}
/* Red/accent orb breathing – pulses brighter and larger */
@keyframes redOrbPulse {
  0%, 100% { transform: scale(1);    opacity: 0.40; }
  50%       { transform: scale(1.28); opacity: 0.72; }
}
/* Tiny particles floating upward and fading out */
@keyframes particleRise {
  0%   { transform: translateY(0)     scale(1);   opacity: 0.85; }
  70%  {                                           opacity: 0.40; }
  100% { transform: translateY(-150px) scale(0.3); opacity: 0;   }
}
/* Thin red line that sweeps top-to-bottom through the sidebar */
@keyframes sidebarVertScan {
  0%   { top: -4px;              opacity: 0; }
  5%   {                          opacity: 1; }
  95%  {                          opacity: 1; }
  100% { top: calc(100% + 4px);  opacity: 0; }
}
/* Accent/red large orb floating on the page background */
@keyframes bgFloatRed {
  0%, 100% { transform: translate(  0px,   0px) scale(1);    }
  35%       { transform: translate(-65px, -85px) scale(1.14); }
  70%       { transform: translate( 48px,  52px) scale(0.88); }
}
/* Thin scan line sweeping downward across the page */
@keyframes bgScanDown {
  0%   { top: -4px;              opacity: 0; }
  4%   {                          opacity: 1; }
  96%  {                          opacity: 1; }
  100% { top: calc(100% + 4px);  opacity: 0; }
}
/* Counter-clockwise ring spin */
@keyframes bgSpinCCW {
  from { transform: rotate(  0deg); }
  to   { transform: rotate(-360deg); }
}
/* Corner bracket pulse – scale + opacity */
@keyframes cornerPulse {
  0%, 100% { opacity: .20; transform: scale(1);    }
  50%       { opacity: .45; transform: scale(1.12); }
}

/* ── 5. Sidebar ───────────────────────────────────────────────── */
.site-sidebar {
  position: fixed;
  inset-block: 0;
  left: 0;
  width: var(--sidebar-w);
  /* Layer 1 – breathing colour-shift gradient (clearly visible teal blooms) */
  background: linear-gradient(
    165deg,
    #ffffff             0%,
    rgba(34,136,150,.20) 25%,
    #ffffff             50%,
    rgba(43,179,198,.15) 75%,
    #ffffff             100%
  );
  background-size: 400% 400%;
  /* Animation 1: gradient shift | Animation 3: border/shadow pulse */
  animation: sidebarGlow 14s ease infinite,
             sidebarBorderPulse 4s ease-in-out infinite;
  border-right: 2px solid var(--brand);
  overflow: hidden;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
/* Animation 2 – shimmer accent bar at the very top */
.site-sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--brand-dk),
    var(--brand-lt),
    var(--brand),
    var(--brand-lt),
    var(--brand-dk)
  );
  background-size: 200% 100%;
  animation: sidebarAccentSlide 4s linear infinite;
  z-index: 2;
  pointer-events: none;
}
.site-sidebar::-webkit-scrollbar { display: none; }

/* Scrollable content wrapper – sits above the animation canvas */
.sidebar-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-pale) transparent;
}
.sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: var(--brand-pale); border-radius: 4px; }

/* Sidebar animation canvas – contains orbs and beam */
.sidebar-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.sidebar-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
}
/* Animation 7 – light beam sweeping left-to-right */
.sidebar-orb--beam {
  position: absolute;
  top: 0;
  left: -80px;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-8deg);
  animation: sidebarBeam 8s ease-in-out infinite;
}

/* Animation 19 – horizontal red line that scans from top to bottom of sidebar */
.sidebar-vertline {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  top: -4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(238,37,77,.65) 30%,
    rgba(238,37,77,.95) 50%,
    rgba(238,37,77,.65) 70%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(238,37,77,.55), 0 0 20px rgba(238,37,77,.25);
  animation: sidebarVertScan 7s ease-in-out infinite;
}
/* Animations 20-24 – tiny floating particles at 5 different positions */
.sidebar-particle {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  animation: particleRise 5s ease-in-out infinite;
}
.sidebar-particle--1 { left: 22%; bottom: 12%; background: rgba(34,136,150,.70);  animation-delay: 0s; }
.sidebar-particle--2 { left: 60%; bottom: 30%; background: rgba(43,179,198,.65);  animation-delay: 1s; }
.sidebar-particle--3 { left: 38%; bottom: 50%; background: rgba(238,37,77,.60);   animation-delay: 2s; }
.sidebar-particle--4 { left: 75%; bottom: 20%; background: rgba(34,136,150,.65);  animation-delay: 3s; }
.sidebar-particle--5 { left: 14%; bottom: 68%; background: rgba(43,179,198,.60);  animation-delay: 4s; }

/* Ensure content layers sit above the animation canvas */
.sidebar-logo,
.site-nav {
  position: relative;
  z-index: 1;
}

/* Sidebar logo block */
.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.75rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.sidebar-logo:hover { background: var(--brand-pale); }

/* Animation 8 – logo glow pulse */
.sidebar-logo img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  transition: transform .3s var(--ease);
  animation: logoGlow 4s ease-in-out infinite;
}
.sidebar-logo:hover img { transform: scale(1.04); animation-play-state: paused; }

/* Animation 9 – brand-name shimmer text */
.sidebar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .02em;
  line-height: 1.3;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-lt) 45%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brandShimmer 3s linear infinite;
}

.sidebar-sub {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Nav links */
.site-nav { flex: 1; padding: .75rem 0 2rem; }

.nav-section-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 1.1rem 1.2rem .4rem;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .58rem 1.2rem .58rem 1.4rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-2);
  border-left: 3px solid transparent;
  line-height: 1.4;
  transition: color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--brand); background: var(--brand-pale); border-left-color: var(--brand-lt); }
.site-nav a.active { color: var(--brand-dk); background: var(--brand-pale); border-left-color: var(--brand); font-weight: 700; }

/* ── 6. Mobile nav toggle ─────────────────────────────────────── */
.nav-toggle {
  display: none;
  position: fixed;
  top: .9rem;
  left: .9rem;
  z-index: 400;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--r-sm);
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  box-shadow: var(--sh-sm);
  transition: background var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--brand-pale); }
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .22s var(--ease);
}
.nav-toggle .bar { position: relative; }
.nav-toggle .bar::before { content:''; position:absolute; top:-6px;    left:0; }
.nav-toggle .bar::after  { content:''; position:absolute; bottom:-6px; left:0; }
.nav-toggle.open .bar          { background: transparent; }
.nav-toggle.open .bar::before  { transform: rotate(45deg);  top: 0; }
.nav-toggle.open .bar::after   { transform: rotate(-45deg); bottom: 0; }

/* Mobile overlay */
.site-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 190;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
.site-overlay.visible { display: block; animation: fadeUp .2s ease; }

/* ── 7. Main content (sidebar offset) ────────────────────────── */
.site-main {
  margin-left: var(--sidebar-w);
  flex: 1;
}

/* ── 8. Hero carousel (pure CSS) ─────────────────────────────── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
.hero__track {
  display: flex;
  height: 100%;
  animation: heroSlide 12s cubic-bezier(.76,0,.24,1) infinite;
  will-change: transform;
}
.hero:hover .hero__track { animation-play-state: paused; }
.hero__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}
.hero__slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.6));
  z-index: 1;
}
.hero__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__caption {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 2;
  gap: .6rem;
}
.hero__caption h1 {
  font-size: clamp(1.75rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
  max-width: 820px;
}
.hero__caption h2 {
  font-size: clamp(.95rem, 1.6vw, 1.3rem);
  font-weight: 400;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
  max-width: 560px;
}
.hero__caption p { margin-top: .8rem; }

/* ── 9. Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.8rem;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform .14s var(--ease);
  text-decoration: none;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 3px 14px rgba(34,136,150,.35);
}
.btn-primary:hover {
  background: var(--brand-dk);
  border-color: var(--brand-dk);
  color: #fff;
  box-shadow: 0 6px 22px rgba(34,136,150,.45);
}
.btn-ghost {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.3);
  border-color: #fff;
  color: #fff;
}

/* ── 10. Page content wrapper ─────────────────────────────────── */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  animation: fadeUp .38s var(--ease) both;
}

/* ── 11. Page / section heading ───────────────────────────────── */
.page-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  padding-bottom: .8rem;
  position: relative;
}
.page-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-lt));
  border-radius: 4px;
}

/* ── 12. Two-column layout (about / jobs) ─────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.img-col {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.img-col::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #e8e8e8 0%, #f5f5f5 40%, #e8e8e8 80%);
  background-size: 700px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  z-index: 0;
}
.img-col img {
  position: relative; z-index: 1;
  display: block;
  width: 100%; height: auto;
  animation: imgReveal .75s cubic-bezier(.22,1,.36,1) both;
}

.text-col h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: .9rem;
}
.text-col p { font-size: 1rem; color: var(--text-2); line-height: 1.8; }

/* ── 13. Gallery grid ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--border);
  cursor: zoom-in;
}
.gallery-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #e8e8e8 0%, #f5f5f5 40%, #e8e8e8 80%);
  background-size: 700px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  z-index: 0;
}
.gallery-item img {
  position: relative; z-index: 1;
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: inherit;
  animation: imgReveal .65s cubic-bezier(.22,1,.36,1) both;
  transition: transform .38s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
/* Subtle stagger on first several items */
.gallery-item:nth-child(1)  img { animation-delay: .00s; }
.gallery-item:nth-child(2)  img { animation-delay: .05s; }
.gallery-item:nth-child(3)  img { animation-delay: .10s; }
.gallery-item:nth-child(4)  img { animation-delay: .15s; }
.gallery-item:nth-child(5)  img { animation-delay: .18s; }
.gallery-item:nth-child(6)  img { animation-delay: .21s; }
.gallery-item:nth-child(7)  img { animation-delay: .24s; }
.gallery-item:nth-child(8)  img { animation-delay: .27s; }
.gallery-item:nth-child(9)  img { animation-delay: .29s; }
.gallery-item:nth-child(10) img { animation-delay: .31s; }
.gallery-item:nth-child(11) img { animation-delay: .33s; }
.gallery-item:nth-child(12) img { animation-delay: .35s; }

/* ── 14. Contact section ──────────────────────────────────────── */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-left: var(--sidebar-w);
}
.contact-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 3.5rem 3rem;
}
.contact-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 1.1rem;
}
.contact-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--brand-pale);
  border-radius: 50%;
  color: var(--brand);
  font-size: 1.3rem;
  margin-top: .15rem;
  transition: background var(--dur) var(--ease);
}
.contact-item:hover .contact-icon { background: rgba(34,136,150,.18); }
.contact-body { min-width: 0; }
.contact-body p {
  font-size: .97rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: .55rem;
}
.contact-body p:last-child { margin-bottom: 0; }
.contact-body a {
  color: var(--text);
  font-size: .97rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
  display: block;
}
.contact-body a:hover { color: var(--brand); }
.contact-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .15rem;
}
.contact-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.contact-address {
  margin-top: .15rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.75;
}

/* ── 15. Footer bar ───────────────────────────────────────────── */
.footer-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand-dk) 0%, var(--brand) 60%, var(--brand-lt) 100%);
  padding: 2.5rem 2.5rem 3rem;
  margin-left: var(--sidebar-w);
}
/* Wave layer 1 */
.footer-bar::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 200%; height: 55px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 55'%3E%3Cpath d='M0,35 C200,5 400,65 600,35 C800,5 1000,65 1200,35 L1200,55 L0,55 Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 50% 100%;
  opacity: .12;
  animation: waveRoll 7s linear infinite;
  pointer-events: none;
}
/* Wave layer 2 – offset phase, slower */
.footer-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 200%; height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40'%3E%3Cpath d='M0,20 C150,40 350,0 600,20 C850,40 1050,0 1200,20 L1200,40 L0,40 Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 50% 100%;
  opacity: .18;
  animation: waveRoll 11s linear infinite reverse;
  pointer-events: none;
}
.footer-bar-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  text-align: center;
}
.footer-copy {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}
.footer-social {
  display: flex;
  gap: .65rem;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,.38); transform: translateY(-2px); color: #fff; }

/* ── 15b. Page background decoration ─────────────────────────── */
/* Fixed behind all content (z-index:-1 within body's isolation context).
   Covers only the main-content area (left offset = sidebar width). */
.page-bg {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;          /* below all body content, above html background */
  overflow: hidden;
}

/* Animation 10 – diagonal stripe pattern drifting across the page */
.page-bg__lines {
  position: absolute;
  inset: -100px;        /* extend beyond edges so movement doesn't show a gap */
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 39px,
    rgba(34,136,150,.055) 39px,
    rgba(34,136,150,.055) 40px
  );
  animation: bgLineDrift 18s linear infinite;
}

.page-bg__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}
/* Animation 11 – large teal orb top-right */
.page-bg__shape--1 {
  width: 600px; height: 600px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(34,136,150,.22) 0%, transparent 60%);
  animation: bgFloat1 20s ease-in-out infinite;
}
/* Animation 12 – medium cyan orb bottom-centre */
.page-bg__shape--2 {
  width: 420px; height: 420px;
  bottom: -120px; left: 28%;
  background: radial-gradient(circle, rgba(43,179,198,.18) 0%, transparent 60%);
  animation: bgFloat2 25s ease-in-out infinite;
}
/* Animation 13 – small teal orb mid-left */
.page-bg__shape--3 {
  width: 280px; height: 280px;
  top: 35%; left: 3%;
  background: radial-gradient(circle, rgba(34,136,150,.16) 0%, transparent 60%);
  animation: bgFloat3 16s ease-in-out infinite;
}
/* Animation 14 – slowly spinning diamond outline bottom-right */
.page-bg__shape--4 {
  width: 220px; height: 220px;
  bottom: 12%; right: 6%;
  border-radius: 8px;
  border: 2.5px solid rgba(34,136,150,.22);
  background: transparent;
  filter: none;
  animation: bgSpin 38s linear infinite;
}
/* Animation 15 – pulsing concentric ring mid-page */
.page-bg__shape--5 {
  width: 340px; height: 340px;
  top: 20%; left: 40%;
  border: 2px solid rgba(43,179,198,.15);
  background: transparent;
  filter: none;
  animation: bgRingPulse 8s ease-in-out infinite;
}

/* Animation 25 – large RED/accent orb floating mid-left of page */
.page-bg__shape--6 {
  width: 520px; height: 520px;
  top: 28%; left: -80px;
  background: radial-gradient(circle, rgba(238,37,77,.18) 0%, rgba(238,37,77,.06) 45%, transparent 65%);
  filter: blur(48px);
  border-radius: 50%;
  animation: bgFloatRed 22s ease-in-out infinite;
}
/* Animation 26 – counter-clockwise red/accent ring bottom-centre */
.page-bg__shape--7 {
  width: 280px; height: 280px;
  bottom: 18%; left: 40%;
  border: 2px solid rgba(238,37,77,.20);
  background: transparent;
  filter: none;
  animation: bgSpinCCW 30s linear infinite;
}

/* Animation 27 – thin teal scan line sweeping downward */
.page-bg__scan {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  top: -4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34,136,150,.45) 20%,
    rgba(43,179,198,.70) 50%,
    rgba(34,136,150,.45) 80%,
    transparent 100%
  );
  animation: bgScanDown 16s linear infinite;
}

/* Animations 28-29 – accent-red corner brackets (top-left and bottom-right) */
.page-bg__corner {
  position: absolute;
  width: 70px; height: 70px;
  border: 2.5px solid rgba(238,37,77,.28);
  animation: cornerPulse 5s ease-in-out infinite;
}
.page-bg__corner--tl {
  top: 44px; left: 24px;
  border-right: none; border-bottom: none;
  animation-delay: 0s;
}
.page-bg__corner--br {
  bottom: 44px; right: 24px;
  border-left: none; border-top: none;
  animation-delay: 2.5s;
}

@media (prefers-reduced-motion: reduce) {
  .footer-bar::before, .footer-bar::after { animation: none; }
  .site-sidebar,
  .site-sidebar::before,
  .sidebar-orb,
  .sidebar-vertline,
  .sidebar-particle,
  .sidebar-logo img,
  .sidebar-brand,
  .page-bg__lines,
  .page-bg__shape,
  .page-bg__scan,
  .page-bg__corner { animation: none; }
}

/* ── 16. Prose (Privacy policy) ───────────────────────────────── */
.prose { max-width: 820px; animation: fadeUp .4s var(--ease) both; }
.prose h1 { font-size: 2rem; color: var(--text); margin-bottom: 1.4rem; }
.prose h2 {
  font-size: 1.1rem;
  color: var(--brand-dk);
  margin-top: 1.8rem;
  margin-bottom: .55rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--border);
}
.prose p, .prose li { font-size: .97rem; color: var(--text-2); line-height: 1.85; }
.prose ul { list-style: disc; padding-left: 1.6rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: .35rem; }
.prose strong { font-weight: 700; color: var(--text); }
.prose a { color: var(--brand); }
.prose a:hover { color: var(--brand-dk); }

/* ── 17. Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 2rem; max-width: 100%; }
  .contact-section { margin-left: 0; }
  .footer-bar { margin-left: 0; }
}

@media (max-width: 768px) {
  /* Sidebar slides off-screen; nav-toggle visible */
  .site-sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform .28s var(--ease);
    z-index: 300;
  }
  .site-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--sh-lg);
  }
  .site-main { margin-left: 0; }
  .footer-bar  { margin-left: 0; }
  .nav-toggle  { display: flex; }

  /* Page background covers full width when sidebar is hidden on mobile */
  .page-bg { left: 0; }

  /* Hero */
  .hero { height: 100svh; min-height: 380px; }
  .hero__caption { padding: 1.25rem; }
  .hero__caption h1 { font-size: 1.45rem; }
  .hero__caption h2 { font-size: .95rem; }

  /* Page content */
  .page-wrap { padding: 2rem 1.25rem; }
  .page-heading { font-size: 1.3rem; }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
  }
  .gallery-item img { height: 160px; }

  /* Contact & footer */
  .contact-grid { grid-template-columns: 1fr; padding: 2rem 1.25rem; gap: 1.75rem; max-width: 100%; }
  .contact-section { margin-left: 0; }
  .footer-bar { padding: 1.75rem 1.25rem; }
  .footer-copy { font-size: .95rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 5px; }
  .gallery-item img { height: 145px; }
  .hero__caption h1 { font-size: 1.2rem; }
  .two-col { gap: 1.5rem; }
  .contact-grid { padding: 1.75rem 1rem; }
}
