/* ==========================================================================
   Ensi Creative Design - Elementor Suite Frontend Styles
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --line: #262626;
  --text: #f2f0eb;
  --muted: #8a877f;
  --lime: #d4ff3a;
  --paper: #f2f0eb;
  --ink: #0a0a0a;
  --pad: clamp(16px, 4vw, 56px);
  --display: 'Bricolage Grotesque', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Global resets for full fidelity */
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body.ensi-theme-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body.loading {
  overflow: hidden !important;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

/* Global link & button resets - completely eliminates theme/browser pink (#c36) and dark blue (#336) */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus,
.elementor a,
.elementor a:link,
.elementor a:visited,
.elementor a:hover,
.elementor a:active,
.elementor a:focus {
  color: inherit;
  text-decoration: none;
}

.switch {
  display: none !important;
}

button,
[type="button"],
[type="reset"],
[type="submit"],
.elementor button,
.elementor [type="button"],
.elementor [type="submit"] {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  outline: none;
}

button:focus,
button:hover,
[type="button"]:focus,
[type="button"]:hover,
[type="submit"]:focus,
[type="submit"]:hover,
.elementor button:focus,
.elementor button:hover {
  background: none;
  color: inherit;
  border: 0;
  box-shadow: none;
  text-decoration: none;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wrap {
  padding: 0 var(--pad);
}

@media (hover: hover) and (pointer: fine) {
  body.ensi-cursor-enabled:not(.elementor-editor-active):not(.elementor-editor-preview),
  body.ensi-cursor-enabled:not(.elementor-editor-active):not(.elementor-editor-preview) a,
  body.ensi-cursor-enabled:not(.elementor-editor-active):not(.elementor-editor-preview) button {
    cursor: none !important;
  }
}

/* Elementor Editor Safe Overrides */
body.elementor-editor-active .loader,
body.elementor-editor-preview .loader,
body.elementor-editor-active .c-dot,
body.elementor-editor-active .c-ring,
body.elementor-editor-preview .c-dot,
body.elementor-editor-preview .c-ring,
body.elementor-editor-active .case,
body.elementor-editor-preview .case,
body.elementor-editor-active .lb,
body.elementor-editor-preview .lb {
  display: none !important;
}

body.elementor-editor-active,
body.elementor-editor-preview,
body.elementor-editor-active *,
body.elementor-editor-preview * {
  cursor: auto !important;
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--lime);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pad);
  transition: transform 1s var(--ease);
}

.loader.done {
  transform: translateY(-100%);
  pointer-events: none;
}

.loader .count {
  font-size: clamp(90px, 22vw, 320px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.06em;
  align-self: flex-end;
}

.loader .bar {
  height: 2px;
  background: rgba(0, 0, 0, .15);
  margin-top: 14px;
}

.loader .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width .2s;
}

/* --------------------------------------------------------------------------
   Custom Cursor
   -------------------------------------------------------------------------- */
.c-dot,
.c-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
}

.c-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--lime);
}

.c-ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(242, 240, 235, .5);
  display: grid;
  place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}

.c-ring span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s;
}

.c-ring.big {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  background: var(--lime);
  border-color: var(--lime);
}

.c-ring.big span {
  opacity: 1;
}

.c-ring.link {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--lime);
}

@media not ((hover: hover) and (pointer: fine)) {
  .c-dot,
  .c-ring {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Scroll Progress
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--lime);
  z-index: 10000;
  width: 0;
  transition: width 0.05s linear;
}

/* --------------------------------------------------------------------------
   Navigation Bar Widget
   -------------------------------------------------------------------------- */
.ensi-nav-wrapper {
  position: relative;
  width: 100%;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
}

.nav .logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.nav .logo img {
  max-height: 36px;
  width: auto;
}

.nav ul.ensi-menu-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul.ensi-menu-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a.mono {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: inherit;
  transition: color 0.2s ease;
}

.nav a.mono:hover {
  color: var(--lime);
}

/* Navigation Mobile Elements (Desktop Default: Hidden) */
.ensi-nav-toggle {
  display: none;
}

.ensi-mobile-menu {
  display: none;
}

.hero-mobile-showcase {
  display: none;
}

#index {
  scroll-margin-top: 90px;
}

/* --------------------------------------------------------------------------
   Hero Widget
   -------------------------------------------------------------------------- */
.hero {
  height: 100svh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) 30px;
  touch-action: pan-y;
  user-select: none;
  background-color: transparent;
}

.trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.trail img {
  position: absolute;
  width: clamp(150px, 17vw, 260px);
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
}

.trail img.show {
  animation: trail 1.5s var(--ease) forwards;
}

@keyframes trail {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.6) rotate(var(--r, 0deg));
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(var(--r, 0deg));
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(.9) rotate(var(--r, 0deg));
  }
}

.hero-top {
  position: absolute;
  top: 96px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  z-index: 2;
  mix-blend-mode: difference;
}

.hero-top .avail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.hero-top .avail i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  50% {
    opacity: .2;
  }
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-weight: 800;
  font-size: clamp(76px, 19.5vw, 330px);
  line-height: .8;
  letter-spacing: -.065em;
  mix-blend-mode: difference;
  color: #fff;
  margin-left: -.04em;
  white-space: nowrap;
}

.hero h1 .ch {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease);
}

.hero h1 .clip {
  display: block;
  overflow: hidden;
  padding-bottom: .02em;
}

body.ready .hero h1 .ch,
.ready .hero h1 .ch {
  transform: none;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-top: 28px;
  mix-blend-mode: difference;
  color: #fff;
}

.hero-bottom p {
  max-width: 430px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.3;
  margin: 0;
}

.hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bbb;
}

.hint b {
  color: #fff;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Marquee Widget
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  white-space: nowrap;
  background-color: transparent;
  width: 100%;
}

.marquee .track {
  display: inline-flex;
  animation: mq 38s linear infinite;
}

.marquee.reverse .track {
  animation-direction: reverse;
}

.marquee span {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -.02em;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.marquee span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
}

@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Section Heads
   -------------------------------------------------------------------------- */
.s-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: clamp(80px, 10vw, 140px) var(--pad) 40px;
  flex-wrap: wrap;
}

.s-head h2 {
  font-size: clamp(46px, 7.5vw, 128px);
  line-height: .88;
  letter-spacing: -.055em;
  font-weight: 800;
  margin: 0;
}

.s-head h2 em {
  font-style: normal;
  color: var(--lime);
}

.s-head .mono {
  color: var(--muted);
  max-width: 340px;
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Horizontal Showcase Widget
   -------------------------------------------------------------------------- */
.hscroll {
  position: relative;
  width: 100%;
}

.hscroll .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.htrack {
  display: flex;
  gap: clamp(18px, 3vw, 48px);
  padding: 0 var(--pad);
  will-change: transform;
}

.panel {
  flex: none;
  width: clamp(290px, 58vw, 980px);
  perspective: 1200px;
  cursor: pointer;
}

.panel .card {
  position: relative;
  height: min(64vh, 620px);
  border-radius: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  background: var(--bg-2);
}

.panel .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 1.2s var(--ease);
}

.panel:hover .card img {
  transform: scale(1.05);
}

.panel .glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .25), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  mix-blend-mode: overlay;
}

.panel:hover .glare {
  opacity: 1;
}

.panel .chip {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  z-index: 2;
}

.panel .meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 18px;
}

.panel h3 {
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: .95;
  letter-spacing: -.04em;
  font-weight: 800;
  margin: 0;
}

.panel .num {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.panel .meta p {
  color: var(--muted);
  max-width: 340px;
  font-size: 15px;
  margin: 0;
}

.panel.end {
  width: clamp(260px, 32vw, 480px);
  display: flex;
  align-items: center;
}

.panel.end a {
  display: block;
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
}

.panel.end a span {
  color: var(--lime);
}

.hcount {
  position: absolute;
  bottom: 28px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.hcount .bar {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin: 0 20px;
  align-self: center;
  position: relative;
}

.hcount .bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--lime);
  width: 0;
}

/* --------------------------------------------------------------------------
   Index List Widget
   -------------------------------------------------------------------------- */
.index {
  border-top: 1px solid var(--line);
  margin: 0 var(--pad);
}

.index a,
.index a:visited,
.row,
.row:visited {
  display: grid;
  grid-template-columns: 70px 1fr auto 60px;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s, padding .5s var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: var(--text) !important;
}

.row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
  z-index: -1;
}

.row:hover,
.row:hover:visited {
  color: var(--ink) !important;
  padding-left: 20px;
  padding-right: 20px;
}

.row:hover::before {
  transform: scaleY(1);
}

.row h4,
.row:visited h4 {
  color: inherit !important;
}

.row .n,
.row:visited .n,
.row .c,
.row:visited .c {
  color: inherit !important;
}

.row .go,
.row:visited .go {
  color: inherit !important;
  border-color: currentColor !important;
}

.row .go svg,
.row:visited .go svg {
  stroke: currentColor !important;
}

.row .n {
  font-family: var(--mono);
  font-size: 13px;
  opacity: .6;
}

.row h4 {
  font-size: clamp(28px, 4.4vw, 72px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 0;
}

.row .c {
  font-family: var(--mono);
  font-size: 13px;
  opacity: .7;
}

.row .go {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  transition: transform .5s var(--ease);
}

.row:hover .go {
  transform: rotate(-45deg);
}

.row .go svg {
  width: 18px;
  height: 18px;
}

.preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 240px;
  margin: -120px 0 0 -170px;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
  z-index: 900;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .4s var(--ease);
}

.preview.on {
  opacity: 1;
  transform: scale(1);
}

.preview .strip {
  position: absolute;
  inset: 0;
  transition: transform .7s var(--ease);
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Playground Canvas Widget
   -------------------------------------------------------------------------- */
.play {
  position: relative;
  height: 100vh;
  overflow: hidden;
  border-block: 1px solid var(--line);
  touch-action: none;
  user-select: none;
}

.play.dragging .tile {
  transition: none;
}

.tile {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  will-change: transform;
  cursor: pointer;
  box-sizing: border-box;
}

.tile .in {
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
  transition: transform .5s var(--ease);
  display: block !important;
  box-sizing: border-box;
}

.tile img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  pointer-events: none;
  transition: transform .8s var(--ease), filter .5s;
}

.tile:hover .in {
  transform: scale(.96);
}

.tile:hover img {
  transform: scale(1.12);
}

.play-ui {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(10, 10, 10, .75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.play-ui svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

.play-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  box-shadow: inset 0 0 120px 60px var(--bg);
}

/* --------------------------------------------------------------------------
   About Card Widget
   -------------------------------------------------------------------------- */
.about {
  padding: clamp(80px, 10vw, 140px) var(--pad);
}

.about-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  overflow: hidden;
  min-height: 620px;
}

.about-card .ph {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.about-card .ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.about-card .tx {
  padding: clamp(30px, 5vw, 70px);
  display: flex;
  flex-direction: column;
}

.about-card .mono {
  color: #6a675f;
}

.about-card h3 {
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
  margin: 22px 0 24px;
}

.about-card h3 mark {
  background: var(--lime);
  padding: 0 .12em;
  border-radius: 4px;
  color: inherit;
}

.about-card p {
  color: #4b4943;
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid #d6d2c8;
}

.stats b {
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  display: block;
}

.stats span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6a675f;
}

/* --------------------------------------------------------------------------
   Contact Widget
   -------------------------------------------------------------------------- */
.contact {
  padding: clamp(90px, 12vw, 170px) var(--pad) 60px;
  text-align: center;
  position: relative;
}

.contact .mono {
  color: var(--muted);
}

.contact h2 {
  font-size: clamp(64px, 15vw, 250px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .82;
  margin: 24px 0 50px;
}

.contact h2 span {
  display: block;
}

.contact h2 .o {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}

.magnet {
  display: inline-grid;
  place-items: center;
  width: clamp(150px, 15vw, 200px);
  height: clamp(150px, 15vw, 200px);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  transition: transform .5s var(--ease);
  text-decoration: none;
}

.magnet svg {
  width: 26px;
  height: 26px;
  margin-top: 6px;
}

.email,
a.email,
.contact a.email,
.contact .email {
  display: block !important;
  margin-top: 40px !important;
  font-size: clamp(18px, 2vw, 26px) !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  text-decoration-color: var(--line) !important;
  color: var(--text) !important;
  transition: text-decoration-color 0.3s ease, color 0.3s ease !important;
}

.email:hover,
.email:focus,
.email:active,
.email:visited,
a.email:hover,
a.email:focus,
a.email:active,
a.email:visited,
.contact a.email:hover,
.contact a.email:focus,
.contact a.email:active,
.contact a.email:visited {
  color: var(--text) !important;
  text-decoration: underline !important;
  text-underline-offset: 6px !important;
  text-decoration-color: var(--text) !important;
  outline: none !important;
}

/* --------------------------------------------------------------------------
   Footer Widget
   -------------------------------------------------------------------------- */
.ensi-footer,
footer.ensi-footer {
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  padding: 24px var(--pad) 70px !important;
  border-top: 1px solid var(--line) !important;
  color: var(--muted) !important;
  width: 100% !important;
}

.ensi-footer span,
footer.ensi-footer span {
  color: var(--muted) !important;
}

.ensi-footer a,
.ensi-footer a:link,
.ensi-footer a:visited,
footer.ensi-footer a,
footer.ensi-footer a:link,
footer.ensi-footer a:visited {
  color: var(--muted) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.ensi-footer a:hover,
.ensi-footer a:focus,
.ensi-footer a:active,
footer.ensi-footer a:hover,
footer.ensi-footer a:focus,
footer.ensi-footer a:active {
  color: var(--text) !important;
  text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   Case-Study Modal Overlay
   -------------------------------------------------------------------------- */
.case {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: var(--bg);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .9s var(--ease);
  overscroll-behavior: contain;
}

.case.open {
  transform: none;
}

.case-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  background: rgba(10, 10, 10, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.close,
button.close,
.case-top .close,
.case-top button.close,
.lb-top .close,
.lb-top button.close {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: transparent !important;
  color: var(--text) !important;
  font-family: var(--mono) !important;
  font-size: 12px !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  transition: background .3s, color .3s, border-color .3s !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
}

.close:hover,
.close:focus,
button.close:hover,
button.close:focus,
.case-top .close:hover,
.case-top .close:focus,
.lb-top .close:hover,
.lb-top .close:focus {
  background: var(--lime) !important;
  color: var(--ink) !important;
  border-color: var(--lime) !important;
  box-shadow: none !important;
}

.close span,
button.close span {
  color: inherit !important;
}

.case-hero {
  padding: clamp(50px, 8vw, 110px) var(--pad) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}

.case-hero h2 {
  font-size: clamp(54px, 10vw, 170px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .85;
  margin: 0;
}

.case-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 420px;
  margin: 0;
}

.case-hero dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.case-hero dt {
  color: var(--muted);
}

.case-cover {
  margin: 0 var(--pad);
  border-radius: 16px;
  overflow: hidden;
  height: min(78vh, 760px);
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-grid {
  columns: 3 300px;
  column-gap: 16px;
  padding: 16px var(--pad);
}

.case-grid figure {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s, transform .8s var(--ease);
  cursor: pointer;
}

.case-grid figure.in {
  opacity: 1;
  transform: none;
}

.case-grid img {
  width: 100%;
  height: auto;
  transition: transform .9s var(--ease);
}

.case-grid figure:hover img {
  transform: scale(1.04);
}

.case-next,
.case-next:visited {
  display: block;
  padding: clamp(60px, 9vw, 120px) var(--pad);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  text-align: center;
  text-decoration: none;
  color: inherit !important;
}

.case-next .mono,
.case-next:visited .mono {
  color: var(--muted) !important;
}

.case-next b,
.case-next:visited b {
  display: block;
  font-size: clamp(46px, 8vw, 130px);
  letter-spacing: -.055em;
  line-height: .9;
  margin-top: 14px;
  transition: color .3s;
  color: inherit !important;
}

.case-next:hover b {
  color: var(--lime) !important;
}

/* --------------------------------------------------------------------------
   Lightbox Modal Viewer
   -------------------------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 25000;
  background: rgba(6, 6, 6, .97);
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.lb.open {
  opacity: 1;
  pointer-events: auto;
}

.lb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad);
}

.lb-top .mono {
  color: var(--muted);
}

.lb-top .mono b {
  color: var(--text);
  font-weight: 500;
}

.lb-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}

.lb-stage img {
  max-width: 92vw;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform .5s var(--ease), opacity .3s;
  cursor: zoom-in;
}

.lb-stage img.zoom {
  transform: scale(2.2);
  cursor: zoom-out;
}

.lb-stage img.swap {
  opacity: 0;
  transform: scale(.96);
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, .8);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background .2s, color .2s;
}

.lb-arrow:hover {
  background: var(--lime);
  color: var(--ink);
}

.lb-arrow svg {
  width: 20px;
  height: 20px;
}

.lb-prev {
  left: var(--pad);
}

.lb-next {
  right: var(--pad);
}

.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px var(--pad) 20px;
  scrollbar-width: none;
}

.thumbs::-webkit-scrollbar {
  display: none;
}

.thumbs button {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  opacity: .4;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: opacity .2s, outline-color .2s;
}

.thumbs button.on {
  opacity: 1;
  outline-color: var(--lime);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Scroll Reveal Animation
   -------------------------------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s, transform 1s var(--ease);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .about-card,
  .case-hero {
    grid-template-columns: 1fr;
  }
  .about-card .ph {
    min-height: 420px;
  }
  .row {
    grid-template-columns: 40px 1fr 50px;
  }
  .row .c {
    display: none;
  }
  .row .go {
    width: 42px;
    height: 42px;
  }
  .preview {
    display: none;
  }
}

/* ==========================================================================
   Mobile Responsive Rules (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Header Nav Toggle & Menu Overlay */
  .nav ul.ensi-menu-list {
    display: none !important;
  }

  .ensi-nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    padding: 0;
    gap: 5px;
    z-index: 1002;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  }

  .ensi-nav-toggle:hover,
  .ensi-nav-toggle:focus {
    background: rgba(212, 255, 58, 0.15);
    border-color: var(--lime);
  }

  .ensi-nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(.16, 1, .3, 1), opacity 0.25s ease, background-color 0.3s ease;
    transform-origin: center;
  }

  /* Hamburger to 'X' animated transition */
  .ensi-nav-toggle.open .bar-1 {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--lime);
  }

  .ensi-nav-toggle.open .bar-2 {
    opacity: 0;
    transform: scaleX(0);
  }

  .ensi-nav-toggle.open .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--lime);
  }

  /* Fullscreen Mobile Navigation Overlay */
  .ensi-mobile-menu {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: space-between;
    padding: 24px var(--pad) 36px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(.16, 1, .3, 1), opacity 0.35s ease, visibility 0.35s;
    overscroll-behavior: contain;
  }

  .ensi-mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body.ensi-menu-open {
    overflow: hidden !important;
  }

  .ensi-mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .ensi-mobile-logo .logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.03em;
    color: #fff;
  }

  .ensi-mobile-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 11px;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
  }

  .ensi-mobile-close:hover,
  .ensi-mobile-close:focus {
    background: var(--lime);
    color: var(--ink);
    border-color: var(--lime);
  }

  .ensi-mobile-menu-body {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 24px 0;
  }

  .ensi-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .ensi-mobile-nav-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(.16, 1, .3, 1), transform 0.4s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--stagger, 0s);
  }

  .ensi-mobile-menu.open .ensi-mobile-nav-list li {
    opacity: 1;
    transform: translateY(0);
  }

  .ensi-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(24px, 7vw, 38px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.25s ease, padding-left 0.3s ease;
  }

  .ensi-mobile-link:hover,
  .ensi-mobile-link:focus {
    color: var(--lime);
    padding-left: 8px;
  }

  .ensi-mobile-link .m-num {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.08em;
    font-weight: 400;
    margin-right: 14px;
    transition: color 0.25s ease;
  }

  .ensi-mobile-link:hover .m-num {
    color: var(--lime);
  }

  .ensi-mobile-link .m-txt {
    flex: 1;
  }

  .ensi-mobile-link .m-arr {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    opacity: 0.6;
    transition: transform 0.3s ease, border-color 0.3s, background 0.3s, opacity 0.3s;
  }

  .ensi-mobile-link .m-arr svg {
    width: 14px;
    height: 14px;
  }

  .ensi-mobile-link:hover .m-arr {
    opacity: 1;
    transform: rotate(-45deg);
    border-color: var(--lime);
    background: var(--lime);
    color: var(--ink);
  }

  .ensi-mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .ensi-mobile-menu-footer .avail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .ensi-mobile-menu-footer .avail i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    display: inline-block;
    animation: blink 1.4s infinite;
  }

  .ensi-mobile-menu-footer .m-email {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
  }

  .ensi-mobile-menu-footer .m-email:hover {
    color: var(--lime);
  }

  /* ========================================================================
     Mobile Hero Section Redesign (<= 768px)
     ======================================================================== */
  .hero {
    height: auto !important;
    min-height: 90svh !important;
    padding-top: 150px !important;
    padding-bottom: 50px !important;
    justify-content: flex-start !important;
    overflow-x: clip !important;
  }

  .hero-top {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 11px !important;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 84px) !important;
    line-height: 0.88 !important;
    white-space: normal !important;
    margin: 10px 0 16px !important;
    word-break: break-word !important;
  }

  .hero h1 .ch {
    display: inline !important;
    transform: none !important;
  }

  .hero-bottom {
    position: relative !important;
    margin-top: 6px !important;
    margin-bottom: 24px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .hero-bottom p {
    font-size: 16px !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
  }

  .hero-bottom .hint {
    display: none !important;
  }

  .hero .trail {
    display: none !important;
  }

  .hero-mobile-showcase {
    display: flex !important;
    flex-direction: column;
    width: calc(100% + (var(--pad) * 2));
    margin-left: calc(-1 * var(--pad));
    margin-top: 8px;
    gap: 14px;
    position: relative;
    z-index: 5;
  }

  .mobile-showcase-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
  }

  .mobile-showcase-bar .m-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
  }

  .mobile-showcase-bar .m-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    display: inline-block;
    animation: blink 1.4s infinite;
  }

  .mobile-showcase-bar .m-count {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    color: var(--lime);
  }

  .mobile-showcase-bar .m-hint {
    color: var(--muted);
  }

  .mobile-showcase-scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px var(--pad) 14px;
    scrollbar-width: none;
  }

  .mobile-showcase-scroller::-webkit-scrollbar {
    display: none;
  }

  .mobile-hero-card {
    flex: 0 0 clamp(190px, 60vw, 250px);
    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .m-card-inner {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  .mobile-hero-card:active .m-card-inner {
    transform: scale(0.97);
    border-color: var(--lime);
  }

  .m-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
  }

  .m-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.75) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px 14px;
    pointer-events: none;
  }

  .m-card-num {
    font-size: 11px;
    color: #fff;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.6);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .m-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(212, 255, 58, 0.35);
  }

  .m-card-icon svg {
    width: 15px;
    height: 15px;
  }

  .mobile-showcase-progress {
    padding: 0 var(--pad);
  }

  .m-prog-bar {
    width: 100%;
    height: 2px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
  }

  .m-prog-fill {
    height: 100%;
    width: 20%;
    background: var(--lime);
    transition: width 0.12s linear;
  }

  /* ========================================================================
     The Index Section Mobile Width & Spacing (<= 768px)
     ======================================================================== */
  #index {
    scroll-margin-top: 80px;
  }

  #index .s-head {
    padding-top: clamp(100px, 16vw, 130px) !important;
    padding-bottom: 24px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  #index .s-head h2 {
    font-size: clamp(38px, 11vw, 64px) !important;
    line-height: 0.9 !important;
  }

  #index .s-head .mono {
    max-width: 100% !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
  }

  .index {
    margin: 0 var(--pad) !important;
  }

  .index a,
  .index a:visited,
  .row,
  .row:visited {
    grid-template-columns: 28px 1fr 40px !important;
    gap: 14px !important;
    padding: 20px 0 !important;
    align-items: center !important;
  }

  .row .n {
    font-size: 12px !important;
    opacity: 0.6 !important;
  }

  .row h4 {
    font-size: clamp(22px, 5.8vw, 36px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    word-break: break-word !important;
  }

  .row .c {
    display: none !important;
  }

  .row .go {
    width: 40px !important;
    height: 40px !important;
  }

  .row .go svg {
    width: 16px !important;
    height: 16px !important;
  }
}

@media (max-width: 640px) {
  .panel {
    width: 82vw;
  }
  .panel .card {
    height: 52vh;
  }
  .panel .meta {
    flex-direction: column;
    gap: 8px;
  }
  .play {
    height: 75vh;
    touch-action: pan-y;
  }
  .tile {
    padding: 6px;
  }
  .play-ui {
    bottom: 16px;
    font-size: 11px;
    padding: 8px 14px;
    max-width: 90%;
  }
  .stats b {
    font-size: 36px;
  }
  .lb-arrow {
    top: auto;
    bottom: 10px;
    transform: none;
    width: 46px;
    height: 46px;
  }
  .thumbs button {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01s !important;
  }
  .rv,
  .case-grid figure {
    opacity: 1;
    transform: none;
  }
}
