
:root{
  --bg: #0b0f14;
  --bg-2: #0d1219;
  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.09);
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.18);
  --text: #eaf2ff;
  --text-dim: #b9c6dc;
  --accent: #7ee787;    /* gentle green */
  --accent-2: #6bc3ff;  /* cyan sky */
  --accent-3: #9b8cff;  /* pastel violet */
  --warn: #ffd580;      /* warm amber */
  --ok: #9ef0a6;        /* mint */
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-soft: 0 6px 20px rgba(0,0,0,0.25);
  --round-xl: 24px;
  --round-2xl: 30px;
  --round-3xl: 42px;
  --blur-lg: 18px;
  --blur-xl: 26px;
  --ring: 1px solid rgba(255,255,255,0.14);
  --ring-2: 1px solid rgba(255,255,255,0.10);
  --grad-1: radial-gradient(1200px 800px at 20% -10%, #1a2840 0%, transparent 60%),
            radial-gradient(1000px 700px at 120% 20%, #173b2b 0%, transparent 55%),
            radial-gradient(600px 600px at 30% 120%, #2b1944 0%, transparent 55%);
  --grad-2: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  --grad-3: linear-gradient(135deg, rgba(126,231,135,0.35), rgba(107,195,255,0.25) 55%, rgba(155,140,255,0.28));
  --speed-1: 220ms;
  --speed-2: 420ms;
  --speed-3: 800ms;
  --speed-slow: 2000ms;
  --easing-1: cubic-bezier(.22,.61,.36,1);
  --easing-2: cubic-bezier(.16,1,.3,1);
  --easing-soft: cubic-bezier(.25,.46,.45,.94);
  --noise-opacity: 0.06;
  --maxw: 1200px;
  --container-pad: clamp(16px, 4vw, 42px);
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  height: 100%;
  background: var(--bg);
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  color: var(--text);
  font: 16px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
  letter-spacing: 0.2px;
  background-image: var(--grad-1);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Smooth selection */
::selection{
  background: rgba(126,231,135,0.25);
  color: #fff;
}

/* ----------------------------- Utility Classes --------------------------- */

.container{
  width: min(100%, var(--maxw));
  padding-inline: var(--container-pad);
  margin-inline: auto;
}

.stack{
  display: grid;
  gap: clamp(16px, 3vw, 32px);
}

.row{
  display: flex;
  gap: clamp(12px, 2vw, 22px);
  flex-wrap: wrap;
  align-items: center;
}

.center{
  display: grid;
  place-items: center;
}

.hidden{
  display: none !important;
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.badge{
  padding: 6px 12px;
  border-radius: 999px;
  border: var(--ring);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 12px;
  letter-spacing: .3px;
}

/* ------------------------------ Noise Overlay ---------------------------- */

.noise{
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 1 1'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='1' height='1' filter='url(%23n)' /%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 2;
}

/* ------------------------------- Header / Nav ---------------------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,10,14,0.75), rgba(7,10,14,0.35));
  border-bottom: var(--ring-2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.nav{
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand{
  font-weight: 800;
  letter-spacing: 0.8px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-transform: uppercase;
}

.brand .cube{
  width: 18px;
  height: 18px;
  position: relative;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 14px rgba(107,195,255,0.32);
  border-radius: 3px;
}
.brand .cube::after{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:6px;
  background: radial-gradient(8px 8px at 20% 20%, rgba(255,255,255,.6), transparent 60%);
  filter: blur(6px);
  opacity: .5;
}

.nav-links{
  justify-self: center;
  display: flex;
  gap: 18px;
}

.nav-links a{
  color: var(--text);
  opacity: .85;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: opacity var(--speed-1) var(--easing-1), transform var(--speed-2) var(--easing-1), background var(--speed-2) var(--easing-1);
}

.nav-links a:hover{
  opacity: 1;
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.nav-cta{
  justify-self: end;
  display: flex;
  gap: 10px;
}

.button{
  position: relative;
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px rgba(107,195,255,0.28), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform var(--speed-1) var(--easing-2), box-shadow var(--speed-2) var(--easing-2);
}
.button:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(107,195,255,0.36);
}
.button:active{
  transform: translateY(1px);
}

/* ------------------------------- Hero Section ---------------------------- */

.hero{
  position: relative;
  min-height: clamp(72vh, 90vh, 96vh);
  display: grid;
  align-items: center;
  padding-top: 24px;
  overflow: hidden;
}

.hero .bg-fx{
  position: absolute;
  inset: -10% -10% -10% -10%;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(126,231,135,0.25), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(107,195,255,0.18), transparent 60%),
    radial-gradient(900px 600px at 110% 60%, rgba(155,140,255,0.25), transparent 60%);
  filter: blur(40px);
  opacity: .7;
}

.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(22px, 5vw, 48px);
  align-items: center;
}

.hero h1{
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: .2px;
  margin: 0 0 14px;
  text-shadow: 0 2px 40px rgba(155,140,255,0.25);
}

.hero p{
  margin: 0 0 20px;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-dim);
}

.hero .cta-row{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-card{
  position: relative;
  border-radius: var(--round-2xl);
  background: var(--glass);
  border: var(--ring);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  padding: clamp(16px, 2.5vw, 22px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(1000px 400px at -10% 0%, rgba(255,255,255,0.08), transparent 55%),
              radial-gradient(700px 400px at 110% 100%, rgba(255,255,255,0.06), transparent 55%);
  pointer-events:none;
}

.hero-preview{
  aspect-ratio: 1 / 1;
  border-radius: clamp(18px, 2vw, 26px);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: var(--ring);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}

/* Placeholder voxels floating in hero preview */
.voxel{
  --s: clamp(10px, 1.2vw, 16px);
  width: var(--s);
  height: var(--s);
  position: absolute;
  transform: translateZ(0) rotate(45deg);
  background: linear-gradient(135deg, rgba(126,231,135,0.7), rgba(107,195,255,0.75));
  border-radius: 3px;
  box-shadow: 0 8px 16px rgba(107,195,255,0.28);
  animation: floatCube var(--speed-slow) var(--easing-soft) infinite;
  will-change: transform, opacity;
  opacity:.8;
}
.voxel:nth-child(odd){ animation-duration: 2600ms; }
.voxel:nth-child(3n){ animation-duration: 3200ms; background: linear-gradient(135deg, rgba(155,140,255,0.7), rgba(107,195,255,0.7)); }
.voxel:nth-child(4n){ animation-duration: 3500ms; filter: saturate(1.1); }

/* ----------------------------- Section Wrappers -------------------------- */

.section{
  position: relative;
  padding-block: clamp(36px, 10vw, 120px);
}

.section-title{
  font-size: clamp(22px, 3.2vw, 36px);
  margin: 0 0 10px;
}

.section-sub{
  color: var(--text-dim);
  margin: 0 0 20px;
}

/* ---------------------------------- Cards -------------------------------- */

.card{
  position: relative;
  border-radius: var(--round-xl);
  padding: clamp(16px, 2.5vw, 22px);
  background: var(--panel);
  border: var(--ring);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--speed-2) var(--easing-2), box-shadow var(--speed-2) var(--easing-2), background var(--speed-3) var(--easing-2);
}

.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(0,0,0,0.35);
  background: var(--panel-2);
}

.card .shine{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255,255,255,.16), transparent 40%),
    radial-gradient(500px 200px at 120% 0%, rgba(126,231,135,.25), transparent 60%),
    radial-gradient(500px 300px at -10% 110%, rgba(107,195,255,.22), transparent 60%);
  opacity:.55;
  mix-blend-mode: screen;
  pointer-events:none;
}

/* --------------------------------- Gallery -------------------------------- */

.gallery{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
}

.gallery-item{
  grid-column: span 4;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: var(--ring);
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
  transition: transform var(--speed-2) var(--easing-2), box-shadow var(--speed-2) var(--easing-2), filter var(--speed-3) var(--easing-1);
  will-change: transform, box-shadow;
  cursor: pointer;
}

.gallery-item.large{ grid-column: span 6; aspect-ratio: 16 / 9; }
.gallery-item.tall{ grid-column: span 3; aspect-ratio: 3 / 4; }

.gallery-item::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.25));
  opacity: 0;
  transition: opacity var(--speed-2) var(--easing-1);
}

.gallery-item:hover{
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 52px rgba(0,0,0,0.42);
}
.gallery-item:hover::before{ opacity: 1; }

.gallery-item .info{
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  z-index: 2;
}

.gallery-item .title{
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.gallery-item .chips{
  display: flex; gap: 6px; flex-wrap: wrap;
}
.chip{
  font-size: 11px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ----------------------------- Image Placeholders ------------------------- */
/* Replace the linear-gradients with real background-image: url(...) later.  */

[class^="img-slot-"], [class*=" img-slot-"]{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.02);
}

.img-slot-1 { background-image: linear-gradient(135deg, #2e7d32, #004d40); }
.img-slot-2 { background-image: linear-gradient(135deg, #263238, #1b5e20); }
.img-slot-3 { background-image: linear-gradient(135deg, #1e3a8a, #0f766e); }
.img-slot-4 { background-image: linear-gradient(135deg, #6d28d9, #0e7490); }
.img-slot-5 { background-image: linear-gradient(135deg, #0f766e, #22c55e); }
.img-slot-6 { background-image: linear-gradient(135deg, #164e63, #1d4ed8); }
.img-slot-7 { background-image: linear-gradient(135deg, #3730a3, #065f46); }
.img-slot-8 { background-image: linear-gradient(135deg, #0ea5e9, #10b981); }
.img-slot-9 { background-image: linear-gradient(135deg, #7c3aed, #22d3ee); }
.img-slot-10{ background-image: linear-gradient(135deg, #22c55e, #64748b); }
.img-slot-11{ background-image: linear-gradient(135deg, #a78bfa, #34d399); }
.img-slot-12{ background-image: linear-gradient(135deg, #4ade80, #38bdf8); }

/* Example for real images (you’ll swap these URLs in HTML or inline styles)
.img-slot-1 { background-image: url('https://i.imgur.com/XXXXXX.webp'); }
... */

/* --------------------------------- Project Card --------------------------- */

.project{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
}

.project .shot{
  border-radius: var(--round-2xl);
  border: var(--ring);
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
  position: relative;
}

.project .meta{
  display: grid;
  gap: 10px;
}

.kpi{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi .k{
  background: var(--glass);
  border: var(--ring);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
}
.kpi .k .n{ font-size: 24px; font-weight: 800; }
.kpi .k .l{ font-size: 12px; color: var(--text-dim); }

/* --------------------------------- Buttons / Links ----------------------- */

.link{
  position: relative;
  color: var(--text);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background var(--speed-1) var(--easing-2), transform var(--speed-1) var(--easing-2);
}
.link:hover{
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.link .underline{
  position: absolute;
  left: 8px; right: 8px; bottom: 4px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--speed-2) var(--easing-2);
}
.link:hover .underline{
  transform-origin: left;
  transform: scaleX(1);
}

/* --------------------------------- Footer -------------------------------- */

.site-footer{
  position: relative;
  padding-block: 40px;
  border-top: var(--ring-2);
  background: linear-gradient(180deg, rgba(10,14,18,0.3), rgba(10,14,18,0.6));
}

.footer-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 18px);
}

.footer-col{ grid-column: span 4; }
.footer-col.large{ grid-column: span 6; }
.footer-note{ color: var(--text-dim); font-size: 13px; }

/* ----------------------------- Motion & ASMR FX -------------------------- */

@keyframes floatCube{
  0%   { transform: translate3d(0,0,0) rotate(45deg); opacity: .8; }
  50%  { transform: translate3d(0,-16px,0) rotate(45deg); opacity: .95; }
  100% { transform: translate3d(0,0,0) rotate(45deg); opacity: .8; }
}

@keyframes softPulse{
  0%,100%{ opacity: .85; filter: saturate(1); }
  50%    { opacity: 1;    filter: saturate(1.08); }
}

@keyframes shimmer{
  0%  { transform: translateX(-120%); }
  100%{ transform: translateX(120%); }
}

@keyframes drift{
  0%   { transform: translate3d(0,0,0); }
  50%  { transform: translate3d(0,-8px,0); }
  100% { transform: translate3d(0,0,0); }
}

@keyframes breathe{
  0%,100%{ transform: scale(1); }
  50%    { transform: scale(1.015); }
}

@keyframes tilt{
  0%,100%{ transform: rotate(-.4deg); }
  50%    { transform: rotate(.4deg); }
}

/* --------------------------- Magnetic Cursor Halo ------------------------ */

.cursor-halo{
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 36px; height: 36px;
  margin-left: -18px; margin-top: -18px;
  border-radius: 999px;
  background: radial-gradient(18px 18px at 50% 50%, rgba(126,231,135,.35), rgba(126,231,135,0) 60%);
  mix-blend-mode: screen;
  transition: transform 80ms linear;
  opacity: .75;
}

/* ------------------------------- Parallax Layers ------------------------- */

.parallax{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.layer{
  position: absolute;
  will-change: transform, opacity;
  transition: transform 100ms linear;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.35));
}

/* Simple cubic tiles to suggest Minecraft blocks */
.block{
  width: clamp(34px, 4vw, 54px);
  height: clamp(34px, 4vw, 54px);
  border-radius: 8px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(126,231,135,.7), rgba(107,195,255,.65));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  animation: drift 6s var(--easing-soft) infinite;
}
.block.dirt{
  background: linear-gradient(135deg, #6b4f36, #3f2d1f);
}
.block.stone{
  background: linear-gradient(135deg, #6b7280, #374151);
}
.block.grass{
  background: linear-gradient(135deg, #22c55e, #15803d);
}

/* --------------------------------- Timeline ------------------------------ */

.timeline{
  display: grid;
  gap: 20px;
  position: relative;
  padding-left: 20px;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.25), transparent);
}
.tline{
  position: relative;
  padding-left: 18px;
}
.tline::before{
  content:"";
  position:absolute;
  left:-2px; top: 6px;
  width: 10px; height: 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 3px rgba(126,231,135,.15);
}

/* --------------------------------- Testimonial --------------------------- */

.testimonial{
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: start;
}
.avatar{
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: var(--ring);
  overflow: hidden;
}

/* --------------------------------- Shimmer Media ------------------------- */

.shimmer{
  position: relative;
  overflow: hidden;
}
.shimmer::after{
  content:"";
  position:absolute; inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.15) 40%, transparent 60%);
  transform: translateX(-120%);
  animation: shimmer 2.8s var(--easing-1) infinite;
  mix-blend-mode: screen;
}

/* ---------------------------------- Modals -------------------------------- */

.modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(7,10,14,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed-2) var(--easing-2), visibility var(--speed-2) var(--easing-2);
}
.modal.open{
  opacity: 1; visibility: visible;
}
.modal-panel{
  width: min(100% - 40px, 980px);
  border-radius: var(--round-2xl);
  background: var(--glass-2);
  border: var(--ring);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(14px);
  transition: transform var(--speed-2) var(--easing-2);
}
.modal.open .modal-panel{ transform: translateY(0); }

.modal-header,
.modal-footer{
  padding: 14px 16px;
  border-bottom: var(--ring-2);
}
.modal-footer{ border-top: var(--ring-2); border-bottom: none; }

.modal-body{
  padding: clamp(12px, 2.5vw, 22px);
}

/* --------------------------------- Forms --------------------------------- */

.field{
  display: grid;
  gap: 6px;
}
.input, .textarea, .select{
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
  transition: border-color var(--speed-1) var(--easing-1), background var(--speed-1) var(--easing-1), box-shadow var(--speed-1) var(--easing-1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.input:focus, .textarea:focus, .select:focus{
  border-color: rgba(126,231,135,.55);
  box-shadow: 0 6px 24px rgba(126,231,135,.18);
  background: rgba(255,255,255,0.08);
}
.textarea{ min-height: 120px; resize: vertical; }

/* --------------------------------- Chips/Tags ---------------------------- */

.tags{ display:flex; gap:8px; flex-wrap:wrap; }
.tag{
  padding: 6px 10px; border-radius: 999px; border: var(--ring);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  letter-spacing:.3px;
}

/* --------------------------------- Badges Glow --------------------------- */

.glow{
  position: relative;
}
.glow::before{
  content:"";
  position: absolute; inset:-1px;
  border-radius: inherit;
  background: radial-gradient(400px 200px at 0% 0%, rgba(155,140,255,.2), transparent 60%),
              radial-gradient(400px 200px at 100% 100%, rgba(107,195,255,.2), transparent 60%);
  filter: blur(6px);
  opacity: .7;
  pointer-events: none;
}

/* --------------------------------- Accordions ---------------------------- */

.accordion{
  display: grid; gap: 10px;
}
.acc-item{
  border-radius: 16px;
  border: var(--ring);
  background: var(--panel);
  overflow: hidden;
}
.acc-head{
  padding: 12px 14px;
  cursor: pointer;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.acc-body{
  grid-template-rows: 0fr;
  display: grid;
  transition: grid-template-rows var(--speed-2) var(--easing-2);
}
.acc-body > div{
  overflow: hidden;
  padding: 0 14px 14px;
}
.acc-item.open .acc-body{ grid-template-rows: 1fr; }

/* --------------------------------- Tabs ---------------------------------- */

.tabs{
  display: grid; gap: 10px;
}
.tab-list{
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(255,255,255,0.04);
  border: var(--ring);
  padding: 6px;
  border-radius: 14px;
}
.tab{
  padding: 8px 12px; border-radius: 12px; cursor: pointer;
  color: var(--text-dim);
  transition: background var(--speed-1) var(--easing-2), color var(--speed-1) var(--easing-2);
}
.tab.active{
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.tab-panels{ position: relative; min-height: 120px; }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; animation: fadeIn var(--speed-3) var(--easing-2); }

@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(6px); }
  to  { opacity: 1; transform: translateY(0); }
}

/* ------------------------------ CTA Ribbon ------------------------------- */

.ribbon{
  position: relative;
  border-radius: var(--round-3xl);
  padding: clamp(16px, 3vw, 26px);
  border: var(--ring);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ribbon .shine{
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at -10% -10%, rgba(126,231,135,.25), transparent 60%),
              radial-gradient(600px 300px at 110% 110%, rgba(107,195,255,.22), transparent 60%);
  pointer-events:none; mix-blend-mode: screen;
}

/* ---------------------------- Floating Action ---------------------------- */

.fab{
  position: fixed;
  right: 18px; bottom: 18px;
  width: 58px; height: 58px;
  border-radius: 18px;
  border: var(--ring);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 36px rgba(107,195,255,.35);
  display: grid; place-items: center;
  color: #062018;
  font-weight: 800;
  cursor: pointer;
  z-index: 40;
  transition: transform var(--speed-1) var(--easing-2), box-shadow var(--speed-2) var(--easing-2);
}
.fab:hover{ transform: translateY(-3px) scale(1.03); }
.fab:active{ transform: translateY(1px) scale(.98); }

/* ------------------------------- Grids / About --------------------------- */

.split{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
}

.about-box{
  border-radius: var(--round-2xl);
  border: var(--ring);
  padding: clamp(16px, 2.5vw, 22px);
  background: var(--glass);
  box-shadow: var(--shadow);
}

/* ------------------------------ Credits strip ---------------------------- */

.credits{
  display: flex; gap: 10px; flex-wrap: wrap; align-items:center;
  opacity:.9;
}
.credit{
  padding: 6px 10px; border-radius: 14px; border: var(--ring);
  background: rgba(255,255,255,.05);
  font-size: 12px;
}

/* ------------------------------ Responsive ------------------------------- */

@media (max-width: 1100px){
  .hero-inner{ grid-template-columns: 1fr; }
  .project{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
}

@media (max-width: 800px){
  .nav{ grid-template-columns: 1fr auto; }
  .nav-links{ display:none; }
  .gallery-item{ grid-column: span 6; }
  .gallery-item.tall{ grid-column: span 6; }
  .footer-col{ grid-column: span 6; }
  .footer-col.large{ grid-column: span 12; }
}

@media (max-width: 560px){
  .gallery{ grid-template-columns: repeat(6, 1fr); }
  .gallery-item{ grid-column: span 6; }
}

/* --------------------------- Depth & Elevation FX ------------------------ */

.depth-1{ box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.depth-2{ box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.depth-3{ box-shadow: 0 16px 40px rgba(0,0,0,.35); }

/* ----------------------------- Progress / Bars --------------------------- */

.progress{
  height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden; border: var(--ring);
}
.progress .bar{
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  width: 0%;
  transition: width 900ms var(--easing-2);
}

/* ----------------------------- Toasts / Alerts --------------------------- */

.toast{
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  border: var(--ring);
  background: rgba(0,0,0,.55);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  z-index: 70;
  opacity: 0; visibility: hidden;
  transition: opacity var(--speed-2) var(--easing-2), visibility var(--speed-2) var(--easing-2), transform var(--speed-2) var(--easing-2);
}
.toast.show{
  opacity: 1; visibility: visible; transform: translate(-50%, -6px);
}

/* ------------------------------ Tooltip ---------------------------------- */

.tooltip{
  position: relative;
}
.tooltip .tip{
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  color:#fff;
  opacity: 0; visibility: hidden;
  transition: opacity var(--speed-1) var(--easing-1), transform var(--speed-1) var(--easing-1), visibility var(--speed-1) var(--easing-1);
}
.tooltip:hover .tip{
  opacity: 1; visibility: visible; transform: translate(-50%, -2px);
}

/* ------------------------------ Hover 3D --------------------------------- */

.hover-3d{
  transform-style: preserve-3d;
  transition: transform var(--speed-2) var(--easing-2);
  will-change: transform;
}
.hover-3d:hover{
  transform: rotateX(6deg) rotateY(-6deg) translateY(-4px);
}
.hover-3d .layer-3d{
  transform: translateZ(24px);
}

/* ------------------------------- Stats Grid ------------------------------ */

.stats{
  display:grid; grid-template-columns: repeat(12,1fr);
  gap: clamp(10px,1.2vw,16px);
}
.stat{
  grid-column: span 3;
  border-radius: 16px;
  border: var(--ring);
  background: var(--panel);
  padding: 14px;
  text-align:center;
}
.stat .value{ font-size: 28px; font-weight: 800; }
.stat .label{ font-size: 12px; color: var(--text-dim); }

@media (max-width: 900px){
  .stat{ grid-column: span 6; }
}
@media (max-width: 560px){
  .stat{ grid-column: span 12; }
}

/* ------------------------------ Marquee ---------------------------------- */

.marquee{
  display:flex; gap: 24px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee .track{
  display:flex; gap: 24px; animation: marquee 22s linear infinite;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

/* ------------------------------- Badges Row ------------------------------ */

.badges-row{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  opacity:.95;
}
.badges-row .badge{
  background: rgba(255,255,255,.06);
}

/* ------------------------------ Code Blocks ------------------------------ */

.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  background: rgba(0,0,0,.4);
  border: var(--ring);
  border-radius: 16px;
  padding: 12px 14px;
  overflow: auto;
}

/* ------------------------------- List Grid ------------------------------- */

.list-grid{
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: clamp(10px,1.2vw,16px);
}
.list-item{
  grid-column: span 6;
  border-radius: 16px;
  border: var(--ring);
  background: var(--panel);
  padding: 14px;
}
@media (max-width: 800px){
  .list-item{ grid-column: span 12; }
}

/* ------------------------------- Overlay FX ------------------------------ */

.overlay-soft{
  position: relative;
}
.overlay-soft::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(1000px 600px at 10% -10%, rgba(255,255,255,.06), transparent 60%),
              radial-gradient(800px 600px at 110% 110%, rgba(255,255,255,.04), transparent 60%);
  pointer-events: none;
}

/* ------------------------------- Pill Nav -------------------------------- */

.pill-nav{
  display:flex; gap:8px; background: rgba(255,255,255,.06);
  border: var(--ring); border-radius: 999px; padding: 6px;
}
.pill{
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  color: var(--text-dim);
}
.pill.active{
  background: rgba(255,255,255,.1);
  color: var(--text);
}

/* ------------------------------ Slider ----------------------------------- */

.slider{
  position: relative; overflow: hidden;
  border: var(--ring); border-radius: var(--round-2xl);
  background: var(--panel);
}
.slider-track{
  display:flex; transition: transform var(--speed-3) var(--easing-2);
}
.slide{ min-width: 100%; aspect-ratio: 16/9; }

/* ------------------------------ Minimal Table ---------------------------- */

.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: var(--ring);
}
.table th, .table td{
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.table thead th{
  background: rgba(255,255,255,0.06);
}

/* ---------------------------- Scrollbar (WebKit) ------------------------- */

*::-webkit-scrollbar{
  width: 10px; height: 10px;
}
*::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-track{
  background: transparent;
}

/* ----------------------------- Focus Visible ----------------------------- */

:focus-visible{
  outline: 2px solid rgba(126,231,135,.65);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---------------------------- Hero Accent Rings -------------------------- */

.rings{
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(220px 220px at 30% 55%, rgba(126,231,135,.25), transparent 60%),
    radial-gradient(280px 280px at 70% 45%, rgba(107,195,255,.22), transparent 60%);
  filter: blur(10px);
}

/* ---------------------------- Card Hover Lines --------------------------- */

.card .line{
  position:absolute; height:1px; left:8%; right:8%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateY(-50%);
  top: 16%;
  opacity: .0;
  transition: opacity var(--speed-2) var(--easing-2);
}
.card:hover .line{ opacity: .65; }

/* -------------------------- Micro-interaction dots ----------------------- */

.dots{
  position:absolute; inset:0; pointer-events:none; opacity:.25;
  background-image:
   radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.7), transparent 60%),
   radial-gradient(1px 1px at 40% 40%, rgba(255,255,255,.5), transparent 60%),
   radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.6), transparent 60%),
   radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,.4), transparent 60%);
  mix-blend-mode: overlay;
}

/* ---------------------------- Hover Lift Small --------------------------- */

.hover-lift{
  transition: transform var(--speed-2) var(--easing-2), box-shadow var(--speed-2) var(--easing-2);
}
.hover-lift:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,.35);
}

/* ----------------------------- Gradient Text ----------------------------- */

.grad{
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------------------- Pill Counters ----------------------------- */

.counter{
  display:inline-flex; align-items:center; gap:6px;
  padding: 6px 10px; border-radius:999px; border: var(--ring);
  background: rgba(255,255,255,.06);
  font-weight:700;
}

/* ----------------------------- Image Zoomable ---------------------------- */

.zoomable{
  cursor: zoom-in;
  transition: transform var(--speed-3) var(--easing-2), filter var(--speed-2) var(--easing-2);
}
.zoomable:hover{
  transform: scale(1.02);
  filter: saturate(1.08);
}

/* ----------------------------- Badge Shine ------------------------------- */

.badge.shiny{
  overflow: hidden;
}
.badge.shiny::after{
  content:"";
  position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-120%);
  animation: shimmer 4s ease-in-out infinite;
}

/* ------------------------------- Steps Line ------------------------------ */

.steps{
  display:grid; gap: 14px;
}
.step{
  display:grid; grid-template-columns: 40px 1fr; gap: 12px; align-items:center;
}
.step .dot{
  width: 18px; height: 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(126,231,135,.18);
}

/* ------------------------- Callout / Notification ------------------------ */

.callout{
  border-radius: 18px; border: var(--ring);
  background: linear-gradient(180deg, rgba(126,231,135,.12), rgba(255,255,255,.02));
  padding: 12px 14px;
}

/* ----------------------------- Play Button ------------------------------- */

.play{
  width: 54px; height: 54px; border-radius: 999px; border: var(--ring);
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #062018; font-weight: 900;
  box-shadow: 0 14px 28px rgba(107,195,255,.35);
  cursor: pointer;
  transition: transform var(--speed-1) var(--easing-2), box-shadow var(--speed-2) var(--easing-2);
}
.play:hover{ transform: translateY(-2px) scale(1.04); }
.play:active{ transform: translateY(1px) scale(.98); }

/* ----------------------------- Ribbon Tags ------------------------------- */

.ribbon-tag{
  display:inline-grid; place-items:center;
  padding: 8px 14px; border-radius: 12px; border: var(--ring);
  background: rgba(255,255,255,.06);
}

/* ----------------------------- Edge Glow Card ---------------------------- */

.edge-glow{
  position: relative; overflow: hidden;
}
.edge-glow::before{
  content:"";
  position:absolute; inset:0; border-radius: inherit;
  padding: 1px; background: var(--grad-3); -webkit-mask:
   linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  border-radius: inherit;
}

/* ----------------------------- Grid Accent Bars -------------------------- */

.accent-bar{
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

/* --------------------------- Header Minimal Menu ------------------------- */

.menu-btn{
  display: none;
  width: 42px; height: 42px; border-radius: 12px; border: var(--ring);
  background: rgba(255,255,255,.06);
  color: var(--text);
  place-items:center;
}
@media (max-width: 880px){
  .menu-btn{ display: grid; }
}

/* ----------------------------- Figure Caption ---------------------------- */

.figure{
  display:grid; gap:8px;
}
.figcap{
  color: var(--text-dim); font-size: 13px;
}

/* ------------------------------ Mini Pill Stat --------------------------- */

.mini-stat{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; border: var(--ring);
  background: rgba(255,255,255,.06);
  font-size: 12px;
}

/* ----------------------------- Header Shadows ---------------------------- */

.site-header::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-16px; height: 20px;
  background: radial-gradient(60% 10px at 50% 0, rgba(0,0,0,.35), transparent);
  pointer-events:none;
}

/* ---------------------------- Hero Gentle Breath -------------------------- */

.hero h1, .hero p, .hero .cta-row{ animation: breathe 6s var(--easing-soft) infinite; }

/* -------------------------- Gallery Entrance Motion ---------------------- */

.gallery-item{
  opacity: 0;
  transform: translateY(12px) scale(.98);
  animation: slideUp .9s var(--easing-2) forwards;
}
.gallery-item:nth-child(2){ animation-delay: .05s; }
.gallery-item:nth-child(3){ animation-delay: .10s; }
.gallery-item:nth-child(4){ animation-delay: .15s; }
.gallery-item:nth-child(5){ animation-delay: .20s; }
.gallery-item:nth-child(6){ animation-delay: .25s; }
.gallery-item:nth-child(7){ animation-delay: .30s; }
.gallery-item:nth-child(8){ animation-delay: .35s; }
.gallery-item:nth-child(9){ animation-delay: .40s; }
.gallery-item:nth-child(10){ animation-delay: .45s; }
.gallery-item:nth-child(11){ animation-delay: .50s; }
.gallery-item:nth-child(12){ animation-delay: .55s; }

@keyframes slideUp{
  from{ opacity: 0; transform: translateY(12px) scale(.98); }
  to  { opacity: 1; transform: translateY(0)     scale(1);   }
}

/* ------------------------------ Hero Voxel Map --------------------------- */

.voxel.v1{ left: 8%;  top: 10%; }
.voxel.v2{ left: 20%; top: 26%; }
.voxel.v3{ left: 36%; top: 14%; }
.voxel.v4{ left: 52%; top: 22%; }
.voxel.v5{ left: 70%; top: 12%; }
.voxel.v6{ left: 78%; top: 34%; }
.voxel.v7{ left: 66%; top: 60%; }
.voxel.v8{ left: 44%; top: 68%; }
.voxel.v9{ left: 26%; top: 58%; }
.voxel.v10{left: 12%; top: 72%; }

/* ----------------------------- Badge Rows Soft --------------------------- */

.breath{
  animation: breathe 8s var(--easing-soft) infinite;
}

/* ------------------------------ Tiny separators -------------------------- */

.sep{
  height: 1px; background: rgba(255,255,255,.08);
  margin: 10px 0;
}

/* ------------------------------ Icon Button ------------------------------ */

.icon-btn{
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  border: var(--ring);
  background: rgba(255,255,255,.06);
  color: var(--text);
  transition: transform var(--speed-1) var(--easing-2), background var(--speed-1) var(--easing-2);
  cursor:pointer;
}
.icon-btn:hover{ transform: translateY(-2px); background: rgba(255,255,255,.1); }

/* ------------------------------ Ghost Button ----------------------------- */

.btn-ghost{
  border-radius: 14px; padding: 10px 14px; border: var(--ring);
  background: rgba(255,255,255,.06); color: var(--text);
  transition: transform var(--speed-1) var(--easing-2), background var(--speed-1) var(--easing-2);
}
.btn-ghost:hover{ transform: translateY(-2px); background: rgba(255,255,255,.1); }

/* ------------------------------ Outline Button --------------------------- */

.btn-outline{
  border-radius: 14px; padding: 10px 14px; border: 1px dashed rgba(255,255,255,.28);
  background: rgba(255,255,255,.03); color: var(--text);
}
.btn-outline:hover{ background: rgba(255,255,255,.06); }

/* ------------------------------ Ghost Panel ------------------------------ */

.ghost{
  border-radius: var(--round-xl); border: var(--ring);
  background: rgba(255,255,255,.06);
  padding: 14px;
}

/* ------------------------------ Tag Cloud -------------------------------- */

.tag-cloud{
  display:flex; flex-wrap:wrap; gap:8px;
}
.tag-cloud .tag{ background: rgba(255,255,255,.08); }

/* ------------------------------ Call-to-Action --------------------------- */

.cta{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}

/* ------------------------------ Divider Glow ----------------------------- */

.divider{
  height: 1px; position: relative; margin: 18px 0;
}
.divider::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  opacity:.55;
}

/* ------------------------------ Floating Labels -------------------------- */

.field.floating{
  position: relative;
}
.field.floating label{
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); color: var(--text-dim);
  pointer-events: none; transition: all var(--speed-1) var(--easing-2);
}
.field.floating .input:focus + label,
.field.floating .input:not(:placeholder-shown) + label{
  top: 4px; transform: none; font-size: 11px; opacity:.85;
}

/* ------------------------------- End Styles ------------------------------ */
.shot.shimmer.img-slot-5.hover-3d {
  position: relative;
  overflow: hidden;
}

.shot.shimmer.img-slot-5.hover-3d .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
