/* Base styles: Inter (Google Fonts) + dark theme */
:root {
  --bg: #0f0f0f;
  --text: #ececec;
  --muted: #9a9a9a;
  --card: #1a1a1a;
  --card-border: #2e2e2e;
  --chip-bg: rgba(108, 99, 255, 0.22);
  --chip-fg: #e0e7ff;
  --accent-hot: #ff6584;
  --accent-color-2: #00d4ff;
  --accent-color: #6c63ff;
  --accent1: var(--accent-color);
  --accent2: var(--accent-color-2);
  --ease-out-expo: cubic-bezier(0.25, 0.8, 0.25, 1);
  --nav-glass-bg: rgba(9, 11, 16, 0.72);
  --nav-border: rgba(255, 255, 255, 0.07);
  /* Reserve space so content clears the fixed navbar (~py-1rem + brand row + border) */
  --navbar-fixed-offset: 4.75rem;
}

html {
  color-scheme: dark;
  overflow-x: hidden;
  scroll-padding-top: var(--navbar-fixed-offset);
}

* {
    box-sizing: border-box;
}

/* Global: full-width page; content column is constrained on main (and hero inner .container) */
html,
body {
  height: 100%;
  max-width: none;
  margin: 0;
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--navbar-fixed-offset);
}

a {
  color: var(--accent-color);
  cursor: pointer;
  font-weight: 600;
}

main {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5vw;
  margin-bottom: 0;
  padding-left: 5vw;
  padding-right: 5vw;
  padding-bottom: clamp(0.5rem, 1.5vw, 1rem);
}

/* Override Bootstrap .container breakpoints so inner pages match the 1280px content column (same as main / HP) */
.container:not(.container-fluid) {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

body.page-home main {
  margin-top: 0;
}

/* Homepage: vertical rhythm without HRs (≥80px between major blocks) */
body.page-home main > .about-scroll-progress + .design-process-section,
body.page-home main > .about-scroll-progress + .featured-projects-section,
body.page-home main > .design-process-section + .featured-projects-section,
body.page-home main > .featured-projects-section + .featured-projects-section {
  margin-top: 80px;
}

body.page-home main > .footer-cta-wrap {
  margin-top: max(80px, 2vw);
}

/* Same content column as main: full-width strips use inner .container */
.navbar > .container,
.page-home .hero.hero--cosmic .container.hero--cosmic-inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5vw;
  padding-right: 5vw;
}

.page-home .hero.hero--cosmic .container.hero--cosmic-inner {
  padding-top: 5vw;
  padding-bottom: 5vw;
}

/* Separator below hero */
.hero-separator{
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero-hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--card-border);
  opacity: 1;
}

/* UX work listing: client / project type label */
.ux-card-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 0;
}

/* Cards and surfaces */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* Typographic utilities */
.lead {
  color: var(--muted);
}

/* Navbar — fixed glass bar (always visible; body padding-top offsets layout) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
  background-color: var(--nav-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 0;
  margin-bottom: 0;
}

/* Bootstrap `py-0` on nav would zero our vertical padding — restore for glass bar */
.navbar.navbar-expand-lg.py-0 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.navbar .nav-link {
  color: var(--text);
}

.navbar .navbar-brand {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Menu links: default reduced opacity, full opacity on hover/focus/active */
.navbar .nav-link{
  opacity: 0.75;
  transition: opacity .18s ease-in-out;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active,
.navbar .nav-item.active .nav-link {
  opacity: 1;
  font-weight: 400;
}

.navbar .nav-link.active,
.navbar .nav-item.active .nav-link {
  color: var(--accent-color)
}

.navbar-brand {
  font-size: 24px;
}

/* LinkedIn icon in navbar */
.nav-item--linkedin {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.nav-link--linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
  color: var(--text);
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--ease-out-expo);
}

.nav-link--linkedin:focus-visible {
  outline: 2px solid var(--accent-color-2);
  outline-offset: 2px;
}

.nav-link--linkedin:hover,
.nav-link--linkedin:focus {
  color: #93c5fd;
  border-color: rgba(10, 102, 194, 0.45);
  background: rgba(10, 102, 194, 0.14);
  transform: translateY(-1px);
}

.nav-link--linkedin .fa-brands {
  font-size: 1.125rem;
  line-height: 1;
}

/* Button / toggle */
#themeToggle {
  min-width: 72px;
}

/* Form inputs: light */
input.form-control,
textarea.form-control {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--card-border);
}

/* Mobile hamburger: remove border/outline and show custom icon */
.navbar-toggler {
  border: none;
  background-color: transparent;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

/* Default bootstrap icon hidden when using custom burger */
.navbar-toggler .navbar-toggler-icon {
  display: none !important;
}

/* Custom hamburger icon: three lines */
.navbar-toggler .burger {
  display: inline-block;
  width: 28px;
  height: 18px;
  position: relative;
}

.navbar-toggler .burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    top 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.18s linear;
}

.navbar-toggler .burger span:nth-child(1) {
  top: 0;
}

.navbar-toggler .burger span:nth-child(2) {
  top: 8px;
}

.navbar-toggler .burger span:nth-child(3) {
  top: 16px;
}

/* Animated burger -> X on open */
.navbar-toggler.open .burger span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.navbar-toggler.open .burger span:nth-child(2) {
  opacity: 0;
  transform: scale(0.6);
}

.navbar-toggler.open .burger span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Hero styles */
.hero {
  padding: 0;
}

.hero-title {
  font-size: 4vw;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text);
  text-align: left;
  margin: 0;
  font-family: inherit;
}

/* Contact: main rhythm + footer-only CTA */
body.page-contact main {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1vw;
  margin-bottom: 0;
  padding-left: 5vw;
  padding-right: 5vw;
  padding-bottom: 0;
}

body.page-contact main > .footer-cta-wrap {
  margin-top: 0;
}

body.page-contact .footer-cta__title {
  font-size: 4vw;
}

.accent--color{
    color: var(--accent-color)!important;
}

/* About grid under hero */
.about-grid-section{
  padding-top: max(5vw, 80px);
  padding-bottom: 0px;
}

.about-grid-header {
  margin-bottom: 32px;
}

.about-grid-heading {
  margin: 0;
}

.about-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  align-items: start;
}
.about-item{
  padding: 0;
}
.about-title{
  text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
    color: var(--text);
    font-weight: 700;
}
.about-desc{
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: var(--text);
}

/* UX work: tag chips row (after meta line) */
.ux-card-body .ux-card-meta + .about-desc {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ux-card-body .about-desc:nth-of-type(2),
.ux-card-body .about-desc:nth-of-type(3) {
  font-size: 12px;
  line-height: 1.4;
}

.ux-card-body .about-desc:nth-of-type(3) {
  margin-top: 4px;
}

.ux-card-body .about-desc:nth-of-type(3) {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ux-card-body .about-desc:nth-of-type(2) span,
.ux-card-body .about-desc:nth-of-type(3) span {
  background-color: var(--chip-bg);
  color: var(--chip-fg);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}


@media (max-width: 768px) {
  .about-grid{
    grid-template-columns: 1fr;
  }
}

/* Mobile: make about-grid horizontally scrollable with snap + progress indicator */
@media (max-width: 768px){

    main {
      margin-top: max(5vw, 40px);
    }

    .page-home .hero.hero--cosmic .container.hero--cosmic-inner {
      padding-top: 40px;
      padding-bottom: 40px;
    }

    .navbar .nav-link {
        font-size: 24px;
    }

    li.nav-item:first-child {
    margin-top: 6px;
}
  .about-grid{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    width: calc(100% + 64px);
    margin-left: -32px;
  }

  article.about-item:first-child {
        padding-left: 32px;
    }

    article.about-item:last-child {
        margin-right: 32px;
    }
  .about-item{
    flex: 0 0 85%;
    min-width: 85%;
    scroll-snap-align: start;
  }
  .about-grid::-webkit-scrollbar{ display:none; }

  /* Progress indicator under the section (mobile only) */
  .about-scroll-progress{ display:block; margin-top:24px;margin-bottom:40px;}
  .about-progress-line{ width:100%; height:3px; background: rgba(255,255,255,0.08); border-radius:2px; overflow:hidden; }
  .about-progress-fill{ width:0%; height:100%; background:var(--text); transition: width 0.12s linear; }
}

/* Hide progress on desktop */
@media (min-width: 769px) {
  .about-scroll-progress { display: none; }
  .sticky--image {
    position: sticky;
    top: 16px;
  }
}

@media (min-width: 992px) {
  .focus--menu {
    background: var(--accent-color) !important;
    border-radius: 50px;
    opacity: 1 !important;
    padding: 8px 24px !important;
    color: #ffffff !important;
    margin-left: 8px;
    border: none !important;
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
    transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out-expo) !important;
  }

  .focus--menu:hover,
  .focus--menu:focus {
    box-shadow: 0 0 24px rgba(108, 99, 255, 0.5);
    transform: translateY(-1px);
  }
}

/* Processes list: single-column stack; each item shows image left / text right on desktop, stacked on mobile */
.processes__container{
  display: grid;
  gap: 3rem;
  margin-top: 0px;
}
.process{
  display: block;
  max-width: 100%;
  min-width: 0;
}
.processes__container > * {
  min-width: 0;
}
.process-title{
  font-size: 40px;
  margin: 0 0 40px 0;
  font-weight: 700;
  letter-spacing: .6px;
  overflow-wrap: anywhere;
}
.process-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
.process-media,
.process-text {
  min-width: 0;
}
.process-media {
  max-width: 100%;
  overflow: hidden;
}
.process-media img{
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}
.process-text h3{
  margin: 0 0 .5rem 0;
  font-size: 15px;
  font-weight: 600;
}
.process-text p{
  margin: 0 0 1rem 0;
  color: var(--text);
  line-height: 1.5;
}

.process-insight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 56px 72px;
  border: 1px solid #232323;
  background: #232323;
}

.process-insight-card > * {
  position: relative;
  z-index: 1;
}

.process-insight-card--image {
  overflow: hidden;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.process-figma-jira-media .process-insight-card--image {
  background-size: 118%;
}

.process-insight-card--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 50% 35%, rgba(0, 88, 140, 0.18), transparent 46%);
}

.process-insight-carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.process-insight-carousel .splide__track {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.process-insight-carousel .splide__list {
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

.process-insight-carousel .splide__slide {
  display: flex;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  height: auto;
  flex: 0 0 100%;
}

.process-insight-carousel .splide__arrows {
  padding: 0 16px;
}

.process-insight-carousel .splide__arrow {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(35, 35, 35, 0.78);
}

.process-insight-carousel .splide__arrow svg {
  fill: #ffffff;
}

.process-insight-carousel .splide__arrow:hover {
  background: rgba(35, 35, 35, 0.95);
}

.process-insight-kicker {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.process-insight-card h2 {
  margin: 0 0 24px 0;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
}

.process-insight-card p,
.process-insight-list {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.process-insight-list {
  padding-left: 1.1rem;
}

.process-insight-list li {
  margin-bottom: 8px;
}

.process-insight-metrics {
  display: grid;
  gap: 16px;
}

.process-insight-metrics div {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process-insight-metrics strong,
.process-insight-metrics span {
  display: block;
}

.process-insight-metrics strong {
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.process-insight-metrics span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.4;
}

.ux--details ul.about-desc {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  color: var(--text);
}

.ux--details ul.about-desc li {
  margin-bottom: 0.25rem;
}

.ux--details {
  max-width: 100%;
  overflow-x: hidden;
}

.ux--details main {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  overflow-x: hidden;
}

.ux--details .processes__container {
  max-width: 100%;
}

/* Inner column for UX case studies (matches site 1280px content width) */
.ux-detail-layout {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5vw;
  padding-right: 5vw;
  width: 100%;
  box-sizing: border-box;
}

.uramaki-output-gallery {
  margin-top: 32px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  contain: layout paint;
}

.uramaki-output-carousel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.uramaki-output-carousel .splide__track {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.uramaki-output-carousel .splide__list {
  display: flex;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.uramaki-output-carousel .splide__slide {
  display: flex;
  width: 100% !important;
  max-width: 100%;
  flex-shrink: 0;
  min-width: 0;
  box-sizing: border-box;
}

.uramaki-output-title-card,
.uramaki-output-item {
  width: 100%;
  aspect-ratio: 9 / 16;
}

.uramaki-output-title-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: #232323;
}

.uramaki-output-title-card .about-title {
  color: var(--accent-color);
}

.uramaki-output-title-card h3 {
  margin: 16px 0 0 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.uramaki-output-item {
  display: block;
  overflow: hidden;
}

.uramaki-output-item--contain {
  background: #232323;
}

.uramaki-output-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uramaki-output-item--contain img {
  object-fit: contain;
}

.uramaki-output-carousel .splide__arrows {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.uramaki-output-carousel .splide__arrow {
  pointer-events: auto;
}

.glightbox-container .gslide-image img {
  max-width: 100vw !important;
  max-height: 90vh !important;
  object-fit: contain;
}


@media (min-width: 769px){
  .process-row{
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .process-ai-text {
    order: 1;
  }

  .process-ai-media {
    order: 2;
  }

  .uramaki-output-carousel .splide__slide {
    width: calc((100% - 64px) / 5) !important;
  }

}

/* Splide inside process-media */
.process-media .splide{
  width: 100%;
  max-width: 100%;
}
.process-media .splide__track{
  overflow: hidden;
}
.process-media .splide__slide{
  box-sizing: border-box;
}
.process-media .splide__slide img{
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* WallETF hero image crop: wide without stretching */
.walletf-hero-image{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
}

.walletf-hero-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* UX work cards: maintain 16:9 image ratio with crop */
.ux-card-image-wrapper{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ux-card-image-wrapper img{
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.UX__work--container .col {
    margin-bottom: 32px;
}

.ux-card {
  cursor: pointer;
}

@media (max-width: 768px) {
  .ux-card-image-wrapper{
    aspect-ratio: 16 / 14;
  }

  .ux-card-image-wrapper img{
     height: 100%;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
  }
 
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .process-title{
    font-size: 28px;
  }

  .process-insight-card {
    padding: 32px 44px;
  }

  .process-insight-carousel .splide__track,
  .process-insight-carousel .splide__list,
  .process-insight-carousel .splide__slide {
    aspect-ratio: 1 / 1;
  }

  .process-insight-carousel .splide__slide {
    height: auto !important;
  }

  .process-insight-card--image {
    min-height: auto;
  }

  .process-insight-card h2 {
    font-size: 22px;
  }

  .process-insight-card p,
  .process-insight-list {
    font-size: 14px;
  }

  .process-insight-metrics strong {
    font-size: 26px;
  }

  .process-insight-metrics span {
    font-size: 12px;
  }

  .mobile--first {
    order: 1;
  }

  .mobile--last {
    order: 2;
  }

  .dyrecta-img-first {
    order: 1;
  }

  .dyrecta-text-first {
    order: 2;
  }
}

/* GLightbox overrides: remove white bar, use white text on overlay */
.glightbox-clean .gslide-description{
  background: transparent !important;
  color: #ffffff !important;
}
.glightbox-clean .gslide-title{
  color: #ffffff !important;
}

/* Subtle arrows for Splide in UX detail carousels */
.process-media .splide {
  position: relative;
}

.process-media .splide__arrows {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 8px;
}

.process-media .splide__arrow {
  pointer-events: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(24, 24, 24, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.process-media .splide__arrow svg {
  width: 14px;
  height: 14px;
  fill: #ececec;
}

.process-media .splide__arrow:hover {
  background: rgba(40, 40, 40, 0.95);
}

/* Footer CTA — avatar + “Get in touch” block */
.footer-cta__avatar {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.footer-cta__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer CTA — strong “Get in touch” block (prototype-style) */
.footer-cta-wrap {
  margin-top: 2vw;
  margin-bottom: 0;
}

.footer-cta {
  position: relative;
  text-align: center;
  padding: clamp(36px, 6vw, 72px) clamp(12px, 4vw, 24px) clamp(18px, 2.5vw, 32px);
  overflow: hidden;
}

.footer-cta__glow {
  position: absolute;
  width: min(600px, 95vw);
  height: min(600px, 95vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(108, 99, 255, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.footer-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.footer-cta__label {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.footer-cta__title {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
}

.footer-cta__desc {
  margin: 0 auto clamp(28px, 4vw, 40px);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  color: var(--muted);
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease-out-expo),
    box-shadow 0.3s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
  max-width: 100%;
  text-align: center;
  word-break: break-word;
}

.footer-cta__btn--primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
  color: #ffffff !important;
  border: none;
  box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
}

.footer-cta__btn--primary:hover,
.footer-cta__btn--primary:focus {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 56px -14px rgba(108, 99, 255, 0.55);
}

.footer-cta__btn--ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--nav-border);
}

.footer-cta__btn--ghost:hover,
.footer-cta__btn--ghost:focus {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Site footer bar — full width below main (same width rhythm as navbar) */
.site-footer-bar {
  position: relative;
  width: 100%;
  left: 0;
  right: 0;
  margin-top: 0;
  padding: 0.55rem 0;
  background-color: var(--nav-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--nav-border);
}

.site-footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-footer-bar__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Index cards */
.index-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
    align-items: flex-start;
}

.index-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.index-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.index-card-desc {
  color: var(--text);
}

.featured-projects-section {
  margin-top: 0;
}

.featured-projects-header {
  margin-bottom: 32px;
}

.featured-projects-title {
  margin: 8px 0 0 0;
  color: var(--text);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.featured-project-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  background: var(--card);
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

.featured-project-card:hover,
.featured-project-card:focus {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: color-mix(in srgb, var(--card) 97%, #ffffff);
  transform: translateY(-2px);
}

.featured-project-card .index-card-cta {
  align-self: flex-start;
  margin-top: auto;
}

.featured-project-number {
  margin-bottom: 32px;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.featured-project-card h3 {
  margin: 0 0 16px 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.featured-project-card p {
  margin: 0 0 24px 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.index-card-cta {
  position: relative;
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 4px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.index-card-cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-bottom: 1px solid currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.index-card-cta:hover,
.index-card-cta:focus {
  color: var(--text);
}

.index-card-cta:hover::after,
.index-card-cta:focus::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .featured-projects-section {
    margin-bottom: 0;
  }

  .featured-projects-title {
    font-size: 28px;
  }

  .featured-projects-grid {
    grid-template-columns: 1fr;
  }

  .featured-project-card {
    min-height: auto;
    padding: 24px;
  }
}

/* Homepage: design process (four steps) */
.design-process-section {
  margin-top: 0;
}

.design-process-header {
  margin-bottom: 36px;
}

.design-process-heading {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}

.design-process-heading .about-title {
  margin: 0;
}

.design-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--card-border);
}

.design-process-card {
  position: relative;
  padding: 28px 22px 32px 24px;
  background: var(--card);
  text-align: left;
}

.design-process-card__watermark {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: clamp(3.25rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.design-process-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

.design-process-card__icon i {
  font-size: 1.125rem;
  line-height: 1;
}

.design-process-card__icon--discover {
  background: rgba(108, 99, 255, 0.28);
  color: #e0e7ff;
}

.design-process-card__icon--define {
  background: rgba(0, 212, 255, 0.16);
  color: #a5f3fc;
}

.design-process-card__icon--design {
  background: rgba(255, 101, 132, 0.2);
  color: #fecdd3;
}

.design-process-card__icon--deliver {
  background: rgba(52, 211, 153, 0.18);
  color: #a7f3d0;
}

.design-process-card__title {
  margin: 0 0 12px 0;
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.design-process-card__desc {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 991px) {
  .design-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .design-process-grid {
    grid-template-columns: 1fr;
  }

  .design-process-card {
    padding: 24px 20px 28px;
  }
}

/* ── Homepage: cosmic hero, gradient hero line, custom cursor (desktop) ── */

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--accent-color-2) 50%,
    var(--accent-hot) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: home-shimmer 4s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text {
    animation: none;
    background-position: 0% 50%;
  }
}

@keyframes home-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes home-blob-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* Homepage hero: full-width layer (outside main); .container inside matches main max-width */
.page-home .hero.hero--cosmic {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.hero--cosmic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.14;
  animation: home-blob-float 10s ease-in-out infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob {
    animation: none;
  }
}

.hero-blob--1 {
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  background: var(--accent-color);
  top: -18%;
  right: -15%;
  animation-delay: 0s;
}

.hero-blob--2 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: var(--accent-color-2);
  bottom: -12%;
  left: 5%;
  animation-delay: -3s;
}

.hero-blob--3 {
  width: min(300px, 55vw);
  height: min(300px, 55vw);
  background: var(--accent-hot);
  top: 35%;
  left: 45%;
  animation-delay: -6s;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 45%, #000 38%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 45%, #000 38%, transparent 72%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero--cosmic-inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  body.custom-cursor--on {
    cursor: none;
  }

  .custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    margin: 0;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10050;
    transition: transform 0.15s var(--ease-out-expo), opacity 0.15s ease;
    mix-blend-mode: screen;
    left: 0;
    top: 0;
    will-change: transform;
  }

  .custom-cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 1.5px solid var(--accent-color-2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10049;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: screen;
    left: 0;
    top: 0;
    will-change: transform;
  }

  body.custom-cursor--on:has(a:hover) .custom-cursor-ring,
  body.custom-cursor--on:has(button:hover) .custom-cursor-ring {
    width: 64px;
    height: 64px;
  }
}

/* -------------------------------------------------------------------------- */
/* Homepage: “Trusted by” inside Get in touch CTA (after title, before copy) */
/* -------------------------------------------------------------------------- */
.brands-section {
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.brands-section--in-footer-cta {
  padding: clamp(0.65rem, 1.75vw, 1rem) 0;
  margin: 0 0 clamp(0.85rem, 2vw, 1.25rem);
  max-width: 100%;
}

.brands-section .brands-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1.35rem;
}

.brands-section .brands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
}

.brands-section .brand-divider {
  width: 1px;
  height: 28px;
  background: var(--nav-border);
  flex-shrink: 0;
}

.brands-section .brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.82;
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out-expo);
}

.brands-section .brand-item:hover {
  opacity: 1;
}

.brands-section .brand-svg {
  display: block;
  height: 22px;
  width: auto;
  max-width: min(132px, 32vw);
  fill: currentColor;
}

.brands-section .brand-svg[style*="height"] {
  height: 32px;
}

.brands-section .brand-name {
  font-weight: 700;
  letter-spacing: 0.1em;
  /* ~same cap height as GUESS wordmark (.brand-svg height 22px) */
  font-size: clamp(1.0625rem, 2.65vw, 1.375rem);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  color: var(--text);
}

@media (max-width: 576px) {
  .brands-section .brand-divider {
    display: none;
  }

  .brands-section .brands-row {
    gap: 0.85rem 1.25rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Global entrance motion: navbar load + scroll reveal (all pages)           */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes nav-enter {
    from {
      opacity: 0;
      transform: translateY(-0.75rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .navbar.navbar-expand-lg {
    animation: nav-enter 0.78s var(--ease-out-expo) both;
  }

  .js-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.72s var(--ease-out-expo),
      transform 0.72s var(--ease-out-expo);
    transition-delay: var(--reveal-delay, 0s);
  }

  .js-reveal.js-reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
