/* ============================================
   PAULWASHERE.COM — 1:1 REPLICA
   Font: DM Sans (aktiv-grotesk substitute)
   Logo: Caveat (handwritten script sub)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Caveat:wght@600&family=Space+Mono:wght@400;700&display=swap');

/* ── Reset ───────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #000;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Header / Nav ────────────────────────── */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 46px 6vw;
  background: transparent;
}

.site-logo {
  text-decoration: none;
  display: block;
  /* Crop window — pa. mark in 2250×2250 canvas.
     Pixel scan: content x=[237,1940], y=[1059,1439] (pa@237-759, dot@1851-1940).
     Scale = 38/380 = 0.1 → img=225px, container=170×38px, top=-106px, left=-24px */
  width: 170px;
  height: 38px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.site-logo img {
  position: absolute;
  width: 225px;
  max-width: none;   /* override global img { max-width: 100% } */
  height: auto;
  top: -106px;
  left: -24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.4px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.nav-link:hover {
  opacity: 0.55;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #000;
  transition: all 0.2s ease;
}

/* ── Main ────────────────────────────────── */
main {
  padding-top: 0;
}

/* ── Portfolio Grid ──────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 6vw;
}

/* ── Grid Item ───────────────────────────── */
.grid-item {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1075 / 900;
  text-decoration: none;
  background: #111;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grid-item:hover img {
  transform: scale(1.03);
}

/* ── Portfolio Overlay ───────────────────── */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.63);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.grid-item:hover .portfolio-overlay {
  opacity: 1;
}

/* ── Portfolio Title ─────────────────────── */
.portfolio-title {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
  line-height: 1.4;
  pointer-events: none;
}

/* ── Composite Grid Item (e.g. Active by Pavoi) ── */
.grid-item--composite .composite-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  gap: 2px;
}

.grid-item--composite .composite-inner img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grid-item--composite:hover .composite-inner img {
  transform: scale(1.04);
}

/* ── CTA Section ─────────────────────────── */
.cta-section {
  display: flex;
  justify-content: center;
  padding: 88px 6vw;
}

/* ── Outline Button ──────────────────────── */
.btn-outline {
  display: inline-block;
  border: 2px solid #000;
  padding: 20px 34px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #000;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: #000;
  color: #fff;
}

/* ── Footer ──────────────────────────────── */
.site-footer {
  padding: 40px 6vw 52px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: flex-end;
}

.copyright {
  font-size: 12px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0;
}

.footer-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-self: flex-end;
}

.footer-center a {
  font-size: 12px;
  font-weight: 400;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s;
}

.footer-center a:hover {
  opacity: 0.5;
}

.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.footer-right .btn-outline {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Social Icons ────────────────────────── */
.social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: opacity 0.15s ease;
}

.social-icon:hover {
  opacity: 0.5;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Responsive — Tablet ─────────────────── */
@media (max-width: 900px) {
  .site-header {
    padding: 32px 6vw;
  }

  .site-logo {
    font-size: 46px;
  }

  .site-nav {
    gap: 24px;
  }

  .nav-link {
    font-size: 11.5px;
  }

  main {
    padding-top: 0;
  }

  .portfolio-title {
    font-size: 10px;
  }
}

/* ── Responsive — Mobile ─────────────────── */
@media (max-width: 640px) {
  .site-header {
    padding: 24px 5vw;
    align-items: center;
  }

  .site-logo {
    font-size: 40px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 200;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav.is-open ~ .nav-toggle {
    position: fixed;
    top: 28px;
    right: 5vw;
    z-index: 201;
  }

  .nav-link {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
    z-index: 201;
  }

  main {
    padding-top: 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 0 4vw;
  }

  .grid-item {
    aspect-ratio: 4/3;
  }

  .portfolio-title {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .cta-section {
    padding: 64px 6vw;
  }

  .btn-outline {
    font-size: 12px;
    padding: 18px 24px;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-center {
    text-align: left;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-right .btn-outline {
    align-self: flex-start;
  }
}

/* ── Portfolio Sidebar ───────────────────── */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.sidebar-backdrop.is-visible {
  opacity: 1;
  pointer-events: all;
}

.portfolio-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 92vw;
  background: #fff;
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  box-shadow: -4px 0 32px rgba(0,0,0,0.12);
}

.portfolio-sidebar.is-open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid #efefef;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
}

.sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: opacity 0.15s;
  margin-right: -6px;
}

.sidebar-close:hover {
  opacity: 0.4;
}

.sidebar-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.sidebar-gallery {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

.sidebar-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.sidebar-footer {
  padding: 18px 24px 26px;
  flex-shrink: 0;
  border-top: 1px solid #efefef;
}

.sidebar-footer .btn-outline {
  width: 100%;
  text-align: center;
  display: block;
  font-size: 12px;
  padding: 15px 24px;
}

/* ── Featured In ─────────────────────────── */
.featured-in {
  padding: 100px 0 108px;
  overflow: hidden;
}

.featured-in-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw 52px;
}

.featured-in-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
}

.featured-in-nav {
  display: flex;
  gap: 8px;
}

.fi-arrow {
  width: 38px;
  height: 38px;
  border: 1.5px solid #000;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  color: #000;
}

.fi-arrow:hover {
  background: #000;
  color: #fff;
}

.fi-arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.fi-track-wrap {
  padding: 0 6vw;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fi-track-wrap::-webkit-scrollbar {
  display: none;
}

.fi-track {
  display: flex;
  gap: 20px;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.fi-track.is-dragging {
  cursor: grabbing;
}

.fi-card {
  flex: 0 0 calc((88vw - 40px) / 3);
  min-width: 260px;
  text-decoration: none;
  color: #000;
  display: block;
}

.fi-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eee;
  margin-bottom: 14px;
}

.fi-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fi-card:hover .fi-card-img img {
  transform: scale(1.04);
}

.fi-source {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 7px;
}

.fi-card-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #000;
}

@media (max-width: 900px) {
  .fi-card {
    flex: 0 0 calc((88vw - 20px) / 2);
    min-width: 200px;
  }
}

@media (max-width: 640px) {
  .featured-in {
    padding: 60px 0 68px;
  }

  .featured-in-head {
    padding: 0 4vw 28px;
  }

  .fi-track-wrap {
    padding: 0 4vw;
  }

  .fi-card {
    flex: 0 0 75vw;
    min-width: 0;
  }
}

/* ══════════════════════════════════════════
   SH-HERO — sunhung.net-inspired opening
   Full-screen dark photo, huge display name,
   mix-blend-mode:difference, bottom marquee.
   ══════════════════════════════════════════ */

.sh-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #08090b;
}

/* ── Background image ── */
.sh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sh-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

/* ── Gradient overlay ──
   Heavy at top (keeps nav readable)
   Medium in centre (lets photo breathe)
   Heavy at bottom (anchors name text)   */
.sh-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(8,9,11,0.70)  0%,
      rgba(8,9,11,0.18) 42%,
      rgba(8,9,11,0.62) 100%
    );
  pointer-events: none;
}

/* ── Name + role block (bottom-left) ── */
.sh-body {
  position: absolute;
  bottom: 216px;       /* clears the info-bar panel below */
  left: 0;
  right: 0;
  padding: 0 6vw;
  z-index: 10;
}

/* Eyebrow: pink accent rule → label */
.sh-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 22px;
  animation: sh-rise 0.65s cubic-bezier(0.22,1,0.36,1) 0.45s both;
}
.sh-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1.5px;
  background: #f62a99;
  flex-shrink: 0;
}

/* Large display name — mix-blend-mode:difference
   makes white glyphs "invert" over brighter
   image areas, keeping text always legible.     */
.sh-name {
  display: block;
  margin: 0 0 22px;
  mix-blend-mode: difference;
  /* NOTE: no transform on this element —
     transforms would create an isolated
     stacking context, breaking blend mode.    */
}
.sh-name-line {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(72px, 11.8vw, 152px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.028em;
  line-height: 0.88;
  text-transform: uppercase;
  /* opacity-only fade — no transform to avoid
     breaking parent mix-blend-mode context   */
  animation: sh-fade 0.9s ease both;
}
.sh-name-line:nth-child(1) { animation-delay: 0.55s; }
.sh-name-line:nth-child(2) { animation-delay: 0.72s; }

/* Role / specialisms */
.sh-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  animation: sh-rise 0.65s cubic-bezier(0.22,1,0.36,1) 0.95s both;
}

/* ── Bottom info bar (What I do / Expertise) ── */
.sh-info-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 6vw 36px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: grid;
  grid-template-columns: 36px 1fr 1fr;
  gap: 0 5vw;
  align-items: start;
  z-index: 20;
  animation: sh-fade 0.5s ease 0.9s both;
}

/* Down-arrow on far left */
.sh-arrow {
  padding-top: 20px;
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  line-height: 1;
}

/* Section label: WHAT I DO / EXPERTISE */
.sh-info-label {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.20em;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Typing row */
.sh-info-roles {
  display: flex;
  align-items: baseline;
  gap: 1px;
  min-height: 18px;
}
.sh-info-typed {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Blinking caret */
.sh-info-caret {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 14px;
  color: #f62a99;
  line-height: 1;
  animation: sh-caret-blink 0.85s step-end infinite;
}
@keyframes sh-caret-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Expertise static list */
.sh-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sh-info-list li {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 2.0;
}

/* Mobile */
@media (max-width: 768px) {
  .sh-info-bar {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    gap: 28px 3vw;
    padding: 22px 5vw 26px;
  }
  .sh-info-col--right {
    grid-column: 2;
  }
  .sh-info-typed { font-size: 10px; }
  .sh-info-list li { font-size: 9px; }
}

/* ── Keyframes ── */
@keyframes sh-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sh-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sh-name-line {
    font-size: clamp(52px, 15vw, 96px);
  }
  .sh-body {
    bottom: 190px;
    padding: 0 5vw;
  }
  .sh-eyebrow { margin-bottom: 16px; }
  .sh-role { font-size: 11px; }
}


/* ══════════════════════════════════════════
   JOURNEY — Kudanil-style split layout
   Left: editorial text over full-bleed bg
   Right: large photo + thumbnail strip
   Bottom: section navigation bar
   GSAP ScrollTrigger · 4 pinned sections
   ══════════════════════════════════════════ */

/* Homepage — white nav over dark hero */
.page-home .nav-link          { color: #fff; }
.page-home .nav-link:hover    { opacity: 0.65; }
.page-home .site-logo img     { filter: invert(1); }

/* ── Journey section shell ── */
.journey {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
}

/* ── Background slides (stacked, opacity crossfade) ── */
.j-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.j-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.j-bg-slide.is-active { opacity: 1; }

/* ── Gradient overlay ── */
.j-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(0,0,0,0.05) 0%,
      rgba(0,0,0,0.15) 38%,
      rgba(0,0,0,0.60) 100%
    );
  pointer-events: none;
}

/* ── Top gradient keeps site header readable ── */
.journey::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.48) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* ── Content wrap (all panels stacked absolutely) ── */
.j-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* ── Individual content panel ── */
.j-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 5vw 95px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}
.j-content.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Left text column ── */
.j-text {
  width: 300px;
  flex-shrink: 0;
}

/* Text word reveals — each text element clips its inner <span> */
.j-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin: 0 0 10px;
  display: block;
  overflow: hidden;
}
.j-label span {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94) 0.05s,
    opacity   0.45s ease                               0.05s;
}
.j-content.is-active .j-label span {
  transform: translateY(0);
  opacity: 1;
}

.j-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(56px, 8.5vw, 120px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 14px;
  display: block;
  overflow: visible;   /* allow descenders (g, y, p) to show below baseline */
  white-space: nowrap; /* prevent long names wrapping inside the 300px column */
}
.j-title span {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.75s cubic-bezier(0.25,0.46,0.45,0.94) 0.12s,
    opacity   0.60s ease                               0.12s;
}
.j-content.is-active .j-title span {
  transform: translateY(0);
  opacity: 1;
}

.j-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.60);
  margin: 0;
  max-width: 280px;
  display: block;
  overflow: hidden;
}
.j-desc span {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94) 0.22s,
    opacity   0.55s ease                               0.22s;
}
.j-content.is-active .j-desc span {
  transform: translateY(0);
  opacity: 1;
}

/* ── Gallery filmstrip ── */
.j-gallery {
  position: relative;
  width: 416px;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
}

/* Corner bracket decorations */
.j-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 2;
  pointer-events: none;
}
.j-corner--tl { top: 0;    left: 0;  border-top:    1px solid rgba(255,255,255,0.45); border-left:   1px solid rgba(255,255,255,0.45); }
.j-corner--tr { top: 0;    right: 0; border-top:    1px solid rgba(255,255,255,0.45); border-right:  1px solid rgba(255,255,255,0.45); }
.j-corner--bl { bottom: 0; left: 0;  border-bottom: 1px solid rgba(255,255,255,0.45); border-left:   1px solid rgba(255,255,255,0.45); }
.j-corner--br { bottom: 0; right: 0; border-bottom: 1px solid rgba(255,255,255,0.45); border-right:  1px solid rgba(255,255,255,0.45); }

.j-gallery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  height: 100%;
}

/* Gallery items slide up from below when panel becomes active */
.j-gallery-item {
  flex: 1;
  overflow: hidden;
  transform: translateY(110%);
  transition:
    transform calc(0.60s + var(--i, 0) * 0.08s) cubic-bezier(0.25,0.46,0.45,0.94)
              calc(var(--i, 0) * 0.07s + 0.06s);
}
.j-content.is-active .j-gallery-item {
  transform: translateY(0);
}
.j-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Bottom navigation bar (transparent, column layout matching kudanil.com) ── */
.j-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  height: 79px;
}
.j-bar-item {
  flex: 1;
  display: block;
  border: none;
  background: transparent;
  border-right: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.j-bar-item:last-child { border-right: none; }

/* Inner wrapper: num → progress line → name, stacked vertically */
.j-bar-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  padding: 12px 2vw 15px;
  box-sizing: border-box;
}

.j-bar-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  line-height: 1;
}

/* Progress track (full item width, bleeds to edges) + animated fill */
.j-bar-prog {
  width: calc(100% + 4vw);
  margin-left: -2vw;
  height: 2px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
  flex-shrink: 0;
}
.j-bar-prog-inner {
  height: 100%;
  width: 0%;
  background: #fff;
}

.j-bar-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color 0.3s ease;
}
.j-bar-item.is-active .j-bar-name          { color: #fff; }
.j-bar-item:hover:not(.is-active) .j-bar-name { color: rgba(255,255,255,0.7); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .j-gallery  { display: none; }
  .j-text     { width: 100%; max-width: none; }
  .j-content  { padding: 0 5vw 82px; }
  .j-title    { font-size: clamp(52px, 15vw, 88px); }
  .j-desc     { font-size: 12px; }
  .j-bar       { height: 65px; }
  .j-bar-inner { padding: 10px 4vw 12px; }
  .j-bar-name  { font-size: 13px; }
  .j-bar-num   { font-size: 11px; }
}


/* ══════════════════════════════════════════
   BUTTON ROLL ANIMATION (Layrid-style)
   Text slides up on hover; duplicate enters from below
   ══════════════════════════════════════════ */

.btn-outline.btn-roll {
  position: relative;
  overflow: hidden;
  padding: 0;          /* padding moved to roll-a / roll-b */
}

.btn-roll .roll-a,
.btn-roll .roll-b {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 34px;
  transition: transform 0.52s cubic-bezier(0.76,0,0.24,1);
  white-space: nowrap;
}

.btn-roll .roll-b {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

.btn-roll:hover .roll-a {
  transform: translateY(-100%);
}

.btn-roll:hover .roll-b {
  transform: translateY(0);
}

/* Sidebar button — smaller padding */
.sidebar-footer .btn-roll .roll-a,
.sidebar-footer .btn-roll .roll-b {
  padding: 15px 24px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .btn-roll .roll-a,
  .btn-roll .roll-b {
    padding: 18px 24px;
    font-size: 12px;
  }
}


/* ══════════════════════════════════════════
   DARK MODE TOGGLE BUTTON
   ══════════════════════════════════════════ */

#dark-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 600;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.2);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

#dark-toggle:hover {
  transform: scale(1.1);
}

#dark-toggle svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Show moon in light mode, sun in dark mode */
#dark-toggle #icon-moon { display: block; }
#dark-toggle #icon-sun  { display: none;  }

body.dark-mode #dark-toggle {
  background: #fff;
  color: #000;
}

body.dark-mode #dark-toggle #icon-moon { display: none;  }
body.dark-mode #dark-toggle #icon-sun  { display: block; }


/* ══════════════════════════════════════════
   DARK MODE — body.dark-mode overrides
   ══════════════════════════════════════════ */

body.dark-mode {
  background: #0c0c0c;
  color: #f0f0f0;
}

body.dark-mode .nav-link {
  color: #f0f0f0;
}

body.dark-mode .nav-toggle span {
  background: #f0f0f0;
}

body.dark-mode .site-nav {
  background: #0c0c0c;
  color: #f0f0f0;
}

body.dark-mode .btn-outline {
  border-color: #f0f0f0;
  color: #f0f0f0;
}

body.dark-mode .btn-outline:hover {
  background: #f0f0f0;
  color: #0c0c0c;
}

body.dark-mode .fi-arrow {
  border-color: #f0f0f0;
  color: #f0f0f0;
}

body.dark-mode .fi-arrow:hover {
  background: #f0f0f0;
  color: #0c0c0c;
}

body.dark-mode .featured-in-heading {
  color: #f0f0f0;
}

body.dark-mode .fi-card-title {
  color: #f0f0f0;
}

body.dark-mode .fi-card {
  color: #f0f0f0;
}

body.dark-mode .fi-source {
  color: #777;
}

body.dark-mode .footer-center a {
  color: #f0f0f0;
}

body.dark-mode .sidebar-backdrop {
  background: rgba(0,0,0,0.72);
}

body.dark-mode .portfolio-sidebar {
  background: #141414;
}

body.dark-mode .sidebar-header,
body.dark-mode .sidebar-footer {
  border-color: #2a2a2a;
}

body.dark-mode .sidebar-title {
  color: #f0f0f0;
}

body.dark-mode .sidebar-close {
  color: #f0f0f0;
}

body.dark-mode .sidebar-gallery {
  background: #141414;
}

/* Media Kit dark overrides (shared via style.css) */
body.dark-mode .mk-hero {
  border-bottom-color: #2a2a2a;
}

body.dark-mode .mk-hero__title,
body.dark-mode .mk-section-title,
body.dark-mode .mk-cta__heading {
  color: #f0f0f0;
}

body.dark-mode .mk-hero__sub {
  color: #aaa;
}

body.dark-mode .mk-eyebrow,
body.dark-mode .mk-section-label {
  color: #666;
}

body.dark-mode .mk-stats {
  border-top-color: #2a2a2a;
}

body.dark-mode .mk-stat {
  border-right-color: #2a2a2a;
  border-bottom-color: #2a2a2a;
}

body.dark-mode .mk-stat__num {
  color: #f0f0f0;
}

body.dark-mode .mk-stat__label {
  color: #666;
}

body.dark-mode .mk-body {
  border-top-color: #2a2a2a;
}

body.dark-mode .mk-col--left {
  border-right-color: #2a2a2a;
}

body.dark-mode .mk-list li {
  color: #ccc;
}

body.dark-mode .mk-list li::before {
  color: #555;
}

body.dark-mode .mk-brands {
  border-top-color: #2a2a2a;
}

body.dark-mode .mk-brands .mk-marquee-item img {
  filter: invert(1) brightness(0.85);
}

body.dark-mode .mk-cta {
  border-top-color: #2a2a2a;
}

body.dark-mode .mk-cta__sub {
  color: #888;
}


/* ══════════════════════════════════════════
   CUSTOM CURSOR
   Ring (lerp lag) + dot (direct follow)
   Only on fine-pointer devices
   ══════════════════════════════════════════ */

@media (hover: hover) and (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }

  #pa-cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    will-change: left, top;
    mix-blend-mode: difference;
    background: transparent;
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
  }

  #pa-cursor-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    will-change: left, top;
    mix-blend-mode: difference;
  }

  /* Expand ring on hoverable elements */
  a:hover ~ #pa-cursor-ring,
  button:hover ~ #pa-cursor-ring {
    width: 48px;
    height: 48px;
  }
}
