* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

:root {
  --bg: #030816;
  --fg: #ffffff;
  --accent: #ffffff;
  --accent-text: #030816;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg);
  overflow-x: clip;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* ===================================================
   Custom Minimal Floating Scrollbar
=================================================== */
.custom-scrollbar {
  position: fixed;
  top: 14px;
  bottom: 14px;
  right: 0;
  width: 18px;
  height: calc(100vh - 28px);
  z-index: 99999;
  pointer-events: auto;
  background: transparent;
  display: flex;
  justify-content: flex-end;
  user-select: none;
  touch-action: none;
}

.custom-scrollbar-thumb {
  position: absolute;
  top: 0;
  right: 6px;
  width: 5px;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 9999px;
  cursor: grab;
  transform: translate3d(0, 0, 0);
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              right 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
  will-change: transform;
}

.custom-scrollbar:hover .custom-scrollbar-thumb,
.custom-scrollbar-thumb:hover {
  width: 7px;
  right: 5px;
  background: rgba(255, 255, 255, 0.65);
}

.custom-scrollbar-thumb.is-dragging {
  width: 8px;
  right: 4px;
  cursor: grabbing;
  background: rgba(255, 255, 255, 0.9);
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--fg);
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

h1, h2, h3, h4, h5, h6, p, span, div {
  cursor: default;
}

a, button, [role="button"] {
  cursor: pointer;
}

/* ===================================================
   Intro Opening Screen Overlay
=================================================== */
.intro-screen-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  will-change: opacity, transform;
}

.intro-screen-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  will-change: transform, opacity;
}

.intro-logo-title {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* White rectangle badge under 'amclosure' matching 'websites' badge */
.intro-word-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--accent-text);
  border-radius: 0.22em;
  padding: 0.02em 0.2em;
  line-height: 1.1;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateX(-120px) skewX(-8deg);
  filter: blur(18px);
  will-change: transform, opacity, filter;
}

.intro-suffix {
  display: inline-block;
  color: #ffffff;
  margin-left: 0.02em;
  opacity: 0;
  transform: translateX(-120px) skewX(-8deg);
  filter: blur(18px);
  will-change: transform, opacity, filter;
}

/* Keyframes for smooth motion blur swipe entrance with natural deceleration */
@keyframes swipeMotionBlurIn {
  0% {
    opacity: 0;
    transform: translateX(-120px) skewX(-10deg);
    filter: blur(18px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0) skewX(0deg);
    filter: blur(0px);
  }
}

.intro-word-badge.is-revealed {
  animation: swipeMotionBlurIn 0.74s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-suffix.is-revealed {
  animation: swipeMotionBlurIn 0.74s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Intro Down Arrow Indicator */
.intro-scroll-indicator {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  pointer-events: none;
}

.intro-scroll-indicator.is-revealed {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  animation: introArrowBounce 2.4s ease-in-out infinite 0.55s;
}

@keyframes introArrowBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateX(-50%) translateY(9px);
    opacity: 1;
  }
}

/* Background Frame Sequence Canvas Container */
.bg-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
}

.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(3, 8, 22, 0.12) 0%, rgba(3, 8, 22, 0.45) 100%);
  pointer-events: none;
  transform: translateZ(0);
}


/* Page Sections */
.section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.section-hero {
  position: relative;
  width: 100%;
  min-height: 185vh;
  display: block;
  padding: 0;
  text-align: center;
  z-index: 10;
}

/* Pages Wrapper */
.dark-pages-wrapper {
  position: relative;
  width: 100%;
  background: transparent;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.hero-content {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.85rem;
  width: 100%;
  opacity: 1;
  transform: none;
  isolation: isolate;
  pointer-events: auto;
}

.section-blank {
  min-height: 100vh;
  width: 100%;
}

.hero-title {
  position: relative;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  user-select: none;
}

.hero-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 780px);
  height: min(32vw, 180px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 22%, rgba(255,255,255,0.03) 52%, rgba(255,255,255,0) 75%);
  filter: blur(18px);
  z-index: -1;
  border-radius: 50%;
}

.hero-static {
  color: var(--fg);
}

/* White rectangle with rounded corners badge */
.word-badge {
  display: inline-grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  position: relative;
  background-color: var(--accent);
  color: var(--accent-text);
  border-radius: 0.22em;
  padding: 0.02em 0.2em;
  line-height: 1.1;
  overflow: hidden;
  cursor: pointer;
  vertical-align: middle;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.25);
  outline: none;
  text-decoration: none;
}

.word-badge:focus-visible {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.8), 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Words stacked inside grid */
.word-badge .word {
  grid-area: 1 / 1;
  display: inline-block;
  white-space: nowrap;
  will-change: transform, opacity;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Initial state: "websites" in view, "for you" positioned above */
.word-badge .word-primary {
  transform: translateY(0);
  opacity: 1;
}

.word-badge .word-secondary {
  transform: translateY(-130%);
  opacity: 0;
}

/* Hover on desktop (mouse) - purely changes text */
@media (hover: hover) and (pointer: fine) {
  .word-badge:hover .word-primary {
    transform: translateY(130%);
    opacity: 0;
  }

  .word-badge:hover .word-secondary {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile & Touch active state - purely changes text */
.word-badge.is-active .word-primary {
  transform: translateY(130%);
  opacity: 0;
}

.word-badge.is-active .word-secondary {
  transform: translateY(0);
  opacity: 1;
}

/* ===================================================
   Contact Pill Button & Dropdown Menu
=================================================== */

.contact-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
}

/* Circular smoothed pill button 1:1 with bento cards */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(12, 12, 14, 0.52);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border-radius: 9999px;
  padding: 0.52rem 1.15rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  cursor: pointer;
  outline: none;
  user-select: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s ease;
}

.contact-btn:hover,
.contact-wrapper.is-open .contact-btn,
.contact-wrapper.is-active .contact-btn {
  background: rgba(22, 22, 26, 0.75);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.contact-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), 0 8px 30px rgba(0, 0, 0, 0.35);
}

.contact-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  line-height: 0;
  transition: color 0.3s ease;
}

.contact-btn:hover .contact-btn-icon,
.contact-wrapper.is-open .contact-btn .contact-btn-icon {
  color: #ffffff;
}

/* Text morph swipe animation inside contact pill */
.contact-btn-text {
  display: inline-grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25;
}

.contact-btn-text span {
  grid-area: 1 / 1;
  display: inline-block;
  white-space: nowrap;
  will-change: transform, opacity;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.contact-btn-text .text-primary {
  transform: translateY(0);
  opacity: 1;
}

.contact-btn-text .text-secondary {
  transform: translateY(-130%);
  opacity: 0;
}

/* Hover or Active changes text to "Don't be shy!" */
@media (hover: hover) and (pointer: fine) {
  .contact-btn:hover .text-primary {
    transform: translateY(130%);
    opacity: 0;
  }

  .contact-btn:hover .text-secondary {
    transform: translateY(0);
    opacity: 1;
  }
}

.contact-wrapper.is-active .text-primary,
.contact-wrapper.is-open .text-primary {
  transform: translateY(130%);
  opacity: 0;
}

.contact-wrapper.is-active .text-secondary,
.contact-wrapper.is-open .text-secondary {
  transform: translateY(0);
  opacity: 1;
}

/* ===================================================
   Dropdown Contact Menu Card
=================================================== */

.contact-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  width: 335px;
  max-width: calc(100vw - 32px);
  background: rgba(14, 14, 18, 0.94);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 1.25rem 1.45rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.contact-wrapper.is-open .contact-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.contact-menu-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-menu-header {
  margin-bottom: 1.1rem;
}

.contact-menu-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  color: #ffffff;
  text-align: left;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Individual Contact Item */
.contact-item {
  position: relative;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  color: #f1f5f9;
  cursor: pointer;
  transition: color 0.2s ease;
}

.contact-item:hover {
  color: #ffffff;
}

/* Simple monochrome icon with no background */
.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 0;
  background: none;
  border: none;
  color: #e2e8f0;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.contact-item:hover .contact-item-icon {
  color: #ffffff;
}

.contact-item-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: inherit;
  white-space: nowrap;
  line-height: 20px;
}

/* ===================================================
   Second Section - Bento Grid Layout
=================================================== */

.section-showcase {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 10;
}

.studio-shell {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.studio-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
  max-width: 980px;
}

.studio-header h2 {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: #f8fafc;
  font-weight: 700;
  max-width: 980px;
}

.studio-header p {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: rgba(226, 232, 240, 0.8);
  max-width: 720px;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.studio-card,
.process-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateZ(0);
}

.studio-card {
  min-height: auto;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
}

.studio-card h3,
.process-card h3 {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #f8fafc;
  font-weight: 600;
}

.studio-card p,
.process-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: rgba(226, 232, 240, 0.82);
}

.section-showcase-gallery {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 5rem;
  position: relative;
  z-index: 10;
  overflow: visible;
  cursor: default !important;
}

.page3-frame-container {
  max-width: 1440px;
  width: 100%;
  position: relative;
  margin: 0 auto;
  display: flex;
  cursor: default !important;
}

.page3-bento-panel {
  width: 100%;
  min-height: 620px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 38px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  position: relative;
  z-index: 2;
  transform: translateZ(0);
  cursor: default !important;
}

.page3-title {
  font-size: clamp(2.5rem, 4vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
  color: #ffffff;
  margin: 0 0 2rem;
  max-width: 860px;
  text-align: left;
}

.process-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-card {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 1.5rem 1.3rem;
}

.studio-cta {
  width: 100%;
  margin-top: 2rem;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.studio-cta p {
  font-size: clamp(1.1rem, 1.3vw, 1.45rem);
  color: rgba(248, 250, 252, 0.92);
  max-width: 620px;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.studio-cta .contact-wrapper {
  flex-shrink: 0;
  position: relative;
}

.studio-cta .contact-menu {
  top: auto;
  bottom: calc(100% + 14px);
  right: 0;
  left: auto;
  transform: translateY(-8px);
}

.studio-cta .contact-wrapper.is-open .contact-menu {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .studio-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .page3-bento-panel {
    min-height: 520px;
    padding: 2.5rem 2rem;
    border-radius: 30px;
  }

  .studio-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .section-showcase,
  .section-showcase-gallery {
    padding: 4rem 1.25rem;
    min-height: auto;
  }

  .page3-bento-panel {
    min-height: auto;
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .studio-header h2 {
    max-width: 100%;
  }

  .studio-cta {
    margin-top: 1.5rem;
  }

  .studio-cta .contact-menu {
    left: 0;
    right: auto;
    top: auto;
    bottom: calc(100% + 14px);
    max-width: calc(100vw - 3.5rem);
    transform: translateY(-8px);
  }

  .studio-cta .contact-wrapper.is-open .contact-menu {
    transform: translateY(0);
  }
}
