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

:root {
  --bg: #F5F5F0;
  --text: #1A1A1A;
  --text-light: #3a3a3a;
  --dark: #1A1A1A;
  --accent-mauve: #c9b8c4;
  --accent-blue: #8ba4b0;
  --accent-green: #a0aa8a;
  --accent-olive: #d4dcc4;
  --accent-lavender: #c9b8d4;
  --accent-pink: #d4c0c4;
  --accent-rose: #D4A5A5;
  --border: rgba(26, 26, 26, 0.15);
  --radius: 100px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

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

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Enhanced focus styles for better accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #4a9eff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Accessibility and form enhancements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-to-content {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  padding: 12px 24px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-dark {
  background: var(--dark);
  color: white;
}

.btn-dark:hover {
  background: #444;
}

.btn-light {
  background: var(--bg);
  color: var(--text);
}

.btn-light:hover {
  background: #ddd8d0;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-arrow {
  font-size: 16px;
  line-height: 1;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* ===== Navigation ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  transition: background 0.3s;
}

.main-nav.scrolled {
  background: rgba(245, 245, 240, 0.9);
  backdrop-filter: blur(10px);
}

.mobile-break {
  display: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--dark);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out);
}

.nav-logo:hover {
  background: white;
  color: var(--dark);
}

.nav-toggle {
  width: 56px;
  height: 32px;
  background: var(--dark);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s;
}

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

/* ===== Floating Nav ===== */
.floating-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  padding: 6px 8px;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.float-nav-item {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 6px;
}

.float-nav-item.active {
  background: var(--dark);
  color: white;
}

.float-nav-item:not(.active):hover {
  background: rgba(0, 0, 0, 0.05);
}

.float-nav-dot {
  font-size: 10px;
  opacity: 0.7;
}

/* ===== Hero ===== */
.hero {
  padding: 120px 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.hero-headline h1 {
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -3px;
  visibility: hidden;
  padding-bottom: 0.1em;
  text-wrap: balance;
}

/* Fallback: if GSAP fails to load, show hero after 3s */
@keyframes showHero {
  to {
    visibility: visible;
  }
}

.hero-headline h1 {
  animation: showHero 0s 3s forwards;
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.line-inner {
  display: flex;
  align-items: center;
  gap: 0 16px;
  flex-wrap: wrap;
}

.hero-inline-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.hero-inline-icon svg {
  width: clamp(40px, 5vw, 64px);
  height: clamp(40px, 5vw, 64px);
}

.hero-asterisk {
  display: inline-flex;
  vertical-align: middle;
}

.hero-asterisk svg {
  width: clamp(40px, 4vw, 56px);
  height: clamp(40px, 4vw, 56px);
}

.hero-sidebar {
  padding-top: 40px;
}

.hero-desc {
  font-size: 12px;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 40px;
}

.hero-desc-brand {
  color: var(--text-light);
}

.hero-explore {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.3s;
}

.hero-explore:hover {
  opacity: 0.7;
}

/* ===== Marquee ===== */
.marquee-wrapper {
  margin-top: 48px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.marquee {
  display: flex;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 100%;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
}

.marquee-content span {
  flex-shrink: 0;
}

.marquee-bold {
  font-weight: 700;
  color: var(--text);
}

.marquee-icon {
  font-size: 10px;
}

.marquee-arrow {
  font-size: 14px;
}

.marquee-plus {
  font-weight: 300;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ===== Hero Illustration ===== */
.hero-illustration {
  margin-top: 32px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.hero-ill-inner {
  border-radius: 16px;
  overflow: hidden;
  will-change: transform, opacity;
}

.hero-scene {
  width: 100%;
  height: auto;
}

/* ===== Crane Animation ===== */
#crane-upper-arm {
  transform-box: fill-box;
  transform-origin: 0% 50%;
  will-change: transform;
}

#crane-phone {
  will-change: transform;
}

/* ===== Studio Section ===== */
.studio {
  padding: 120px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 24px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.studio-heading {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1px;
  text-wrap: balance;
}

.studio-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 40px;
}

.studio-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.studio-cta-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 280px;
}

/* ===== Studio Stats ===== */
.studio-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.stat-number-container {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.stat-number {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text);
}

.stat-suffix {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-light);
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .studio-stats {
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 0 0 45%;
  }
}

/* ===== Big Text Section ===== */
.big-text-section {
  height: 300vh;
  position: relative;
}

.big-text-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 40px;
}

.big-text-strip {
  display: flex;
  align-items: center;
  gap: 0;
  will-change: transform;
}

.big-text {
  font-size: clamp(100px, 22vw, 350px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -4px;
  white-space: nowrap;
  text-wrap: balance;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #D8D8D3;
  background: linear-gradient(to right, var(--text) 0%, var(--text) var(--fill, 0%), #D8D8D3 var(--fill, 0%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: none;
}

.big-text-icon svg {
  width: clamp(60px, 10vw, 140px);
  display: inline-block;
  vertical-align: middle;
}

.big-text-diamond svg {
  width: clamp(50px, 8vw, 120px);
  display: inline-block;
  vertical-align: middle;
}

.big-text-asterisk {
  flex-shrink: 0;
  margin-right: 24px;
}

.big-text-asterisk svg {
  width: clamp(80px, 10vw, 160px);
  height: clamp(80px, 10vw, 160px);
}

/* ===== Services Section ===== */
.services {
  padding: 0 40px 120px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.services-decoration {
  position: absolute;
  top: -80px;
  left: 10%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  will-change: transform;
}

/* Orb float handled by GSAP */

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

.service-item {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.service-item:last-child {
  border-bottom: 1px solid var(--border);
}

.service-header {
  display: grid;
  grid-template-columns: 60px 80px 1fr;
  align-items: center;
  cursor: pointer;
  gap: 0;
  min-height: 48px;
}

.service-num {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-light);
}

.service-toggle {
  font-size: 14px;
  color: var(--text-light);
  transition: transform 0.3s;
}

.toggle-text {
  letter-spacing: 2px;
}

.service-name {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: 1px;
  text-align: right;
  padding-right: 40px;
  text-wrap: balance;
}

.service-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}

.service-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 500px;
  margin-left: auto;
  padding-right: 40px;
}

.service-item.active .service-body {
  max-height: 400px;
  padding: 16px 0;
}

.service-item.active .service-header .service-num::before {
  content: '/ ';
}

.service-item.active .service-header .service-num::after {
  content: ' /';
}

.service-item.active .toggle-text {
  letter-spacing: 2px;
}

.service-item.active .toggle-text::after {
  content: '';
}

/* ===== Process Section ===== */
.process {
  height: 200vh;
  position: relative;
  padding: 0;
  margin: 0 auto;
}

.process-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 40px;
}

.process-heading {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -1px;
  text-wrap: balance;
}

.process-heading-icon {
  display: inline-block;
  vertical-align: middle;
}

.process-right-desc p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

/* Step Navigation */
.process-steps-nav {
  margin-bottom: 32px;
}

.process-step-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  transition: opacity 0.4s var(--ease-out);
}

.process-progress-wrapper {
  margin-bottom: 12px;
}

.process-progress-bar {
  width: 100%;
  height: 44px;
  background: #D5D5D0;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.process-progress-fill {
  height: 100%;
  background: var(--dark);
  border-radius: var(--radius);
  width: 0%;
  transition: none;
  will-change: width;
}

.process-progress-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 2px solid #aaa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  left: 0%;
  z-index: 2;
  transition: none;
  will-change: left;
  cursor: grab;
  user-select: none;
}

.process-progress-icon:active {
  cursor: grabbing;
}


.process-step-indicators {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-labels {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s;
}

.step-label.active {
  color: var(--text);
}

.step-progress-text {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.step-progress-text strong {
  color: var(--text);
}

/* Step Content - Horizontal Slide */
.process-steps-content {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.process-steps-track {
  display: flex;
  width: 300%;
  height: 100%;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: calc(100% / 3);
  flex-shrink: 0;
  align-content: start;
  padding: 8px 0;
}

.step-info {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 16px;
  padding: 40px;
}

.step-desc {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
  color: var(--text);
}

.step-desc-light {
  color: var(--text);
  font-weight: 700;
}

.step-perfect {
  font-size: 14px;
  margin-bottom: 16px;
}

.step-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 700;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.step-visual {
  border-radius: 16px;
  overflow: hidden;
  min-height: 350px;
}

.step-visual svg,
.step-visual img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* ===== Cases Section ===== */
.cases {
  padding: 0 40px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.cases-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.cases-heading {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 0;
  text-wrap: balance;
}

.case-card {
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 40px;
}

.case-miro {
  background: #dde0f0;
}

.case-competera {
  background: #d8ddc8;
}

.case-toffy {
  background: #f0e8d8;
}

.case-top {
  display: grid;
  grid-template-columns: 120px 200px 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

.case-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-tag {
  font-size: 13px;
  color: var(--text-light);
}

.case-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.case-subtitle {
  font-size: 14px;
  color: var(--text-light);
  display: block;
  margin-top: 4px;
}

.case-description p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-btn {
  align-self: start;
}

.case-bottom {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: end;
}

.case-logo {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-logo-text {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
}

.case-screenshot {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.case-screenshot svg {
  width: 100%;
  height: auto;
}

.case-slider-counter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.case-counter-text {
  font-size: 14px;
  color: var(--text-light);
}

.case-nav-arrows {
  display: flex;
  gap: 8px;
}

.case-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s;
}

.case-arrow-prev {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-light);
}

.case-arrow-next {
  background: var(--dark);
  color: white;
}

.case-arrow:hover {
  opacity: 0.8;
}

/* ===== Team Section ===== */
.team {
  padding: 0 40px 120px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 80px;
}

.team-header {
  display: grid;
  grid-template-columns: 120px 300px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 60px;
}

.team-heading {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -1px;
}

.team-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  max-width: 500px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.team-card-image {
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  margin-bottom: 20px;
}

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

.team-card-initial {
  width: 100%;
  aspect-ratio: 1.15;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.team-card-role {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.team-card-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 16px;
}

.team-card-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===== Contact Section ===== */
.contact {
  padding: 0 40px;
}

.contact-dark {
  background: var(--dark);
  border-radius: 32px 32px 0 0;
  padding: 80px 60px;
  color: white;
}

.contact-dark-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-heading {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 40px;
}

.contact-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  margin: 16px 0;
}

.contact-icon-circle svg {
  width: 48px;
  height: 48px;
}


.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.contact-email,
.contact-phone {
  font-size: 16px;
  font-weight: 600;
  color: white;
  transition: opacity 0.3s;
}

.contact-email:hover,
.contact-phone:hover {
  opacity: 0.7;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  position: relative;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 0;
  font-size: 13px;
  font-family: var(--font-body);
  color: white;
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color 0.3s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: rgba(255, 255, 255, 0.5);
  outline: 2px solid #4a9eff;
  outline-offset: 2px;
}

.form-field textarea {
  resize: none;
  min-height: 60px;
}

.form-field label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.form-field input:focus+label,
.form-field textarea:focus+label,
.form-field input:not(:placeholder-shown)+label,
.form-field textarea:not(:placeholder-shown)+label {
  opacity: 1;
}

.error-message {
  display: block;
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

/* ===== Footer ===== */
.footer {
  padding: 80px 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 80px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 15px;
  padding: 8px 0;
  transition: opacity 0.3s;
}

.footer-col a:hover {
  opacity: 0.6;
}

.back-to-top {
  width: 56px;
  height: 56px;
  background: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out);
  overflow: hidden;
}

.back-to-top svg {
  transition: transform 0.3s var(--ease-out);
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.back-to-top:hover svg {
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  padding: 8px 12px;
  transition: opacity 0.3s;
}

.footer-bottom-links a:hover {
  opacity: 0.6;
}

/* ===== Testimonials ===== */
/* Hidden until real client testimonials are collected */
.testimonials {
  display: none;
}

.testimonials-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}

.testimonials-heading {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -1px;
  text-wrap: balance;
}

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

.testimonial-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s var(--ease-out);
}

.testimonial-arrow-prev {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-light);
}

.testimonial-arrow-next {
  background: var(--dark);
  color: white;
}

.testimonial-arrow:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.testimonials-carousel {
  position: relative;
  min-height: 280px;
  overflow: visible;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-card.exit-left {
  opacity: 0;
  transform: translateX(-40px);
}

.testimonial-card.exit-right {
  opacity: 0;
  transform: translateX(40px);
  position: absolute;
}

.testimonial-quote {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.3px;
  margin-bottom: 40px;
  max-width: 900px;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar svg {
  width: 100%;
  height: 100%;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 14px;
  color: var(--text-light);
}

.testimonial-company {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.testimonials-counter {
  margin-top: 32px;
}

.testimonial-counter-text {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    padding-top: 24px;
  }

  .studio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-step {
    grid-template-columns: 1fr;
  }

  .process-inner {
    padding: 0 40px;
  }

  .case-top {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .case-bottom {
    grid-template-columns: 1fr;
  }

  .team-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: 16px 20px;
  }

  .hero {
    padding: 100px 0 0;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-headline h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .hero-sidebar {
    padding-top: 16px;
  }

  .hero-illustration {
    padding: 0;
    margin-top: 24px;
  }

  .hero-ill-inner {
    border-radius: 0;
  }

  .marquee-wrapper {
    padding: 0;
    margin-top: 16px;
  }

  .hero-desc {
    margin-bottom: 16px;
  }

  /* Hide "We build smarter" section on mobile */
  .big-text-section {
    display: none;
  }

  .service-header {
    grid-template-columns: 40px 60px 1fr;
  }

  .service-name {
    font-size: 14px;
    text-align: left;
    padding-right: 0;
  }

  .service-body p {
    padding-left: 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .case-top {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }

  .case-bottom {
    display: none;
  }

  .contact-dark {
    padding: 48px 24px;
    border-radius: 24px 24px 0 0;
  }

  .contact-heading {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .floating-nav {
    bottom: 12px;
    padding: 4px 6px;
  }

  .float-nav-item {
    padding: 10px 14px;
    font-size: 12px;
  }

  .footer {
    padding: 48px 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .testimonials {
    padding-left: 20px;
    padding-right: 20px;
  }

  .testimonials-carousel {
    min-height: auto;
  }

  .testimonial-quote {
    font-size: 16px;
  }

  .studio,
  .services,
  .cases,
  .team {
    padding-left: 20px;
    padding-right: 20px;
  }

  .process-inner {
    padding: 0 20px;
  }

  .contact {
    padding: 0 20px;
  }

  /* Hide hero asterisk on mobile */
  .hero-asterisk {
    display: none;
  }

  .hero-inline-icon {
    display: none;
  }

  .nav-toggle {
    left: auto;
    transform: none;
    right: 20px;
  }

  .nav-link {
    display: none;
  }

  .nav-cta-text {
    display: none;
  }

  .nav-right .btn-dark {
    padding: 10px;
    border-radius: 50%;
  }

  .mobile-break {
    display: block;
  }

  .case-cards-wrapper {
    min-height: auto;
  }

  .case-card {
    padding: 24px;
  }

  .cases {
    padding-top: 100px;
  }
}

/* Scroll animations handled by GSAP ScrollTrigger */

/* ===== Magnetic Button Hover ===== */
.btn-magnetic {
  transition: transform 0.2s var(--ease-out);
}

/* ===== Service Hover States ===== */
.service-item {
  transition: padding-left 0.3s var(--ease-out);
}

.service-item:hover {
  padding-left: 8px;
}

/* ===== Cases superscript ===== */
.cases-heading sup {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 400;
  color: var(--text-light);
}

/* ===== Noise Overlay ===== */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===== Service Accordion Text Fade-in ===== */
.service-body p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out) 0.15s, transform 0.4s var(--ease-out) 0.15s;
}

.service-item.active .service-body p {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Team Card Hover ===== */
.team-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.team-card-links {
  margin-top: auto;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ===== Circular Wipe Overlay ===== */
.circular-wipe-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9998;
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.8s var(--ease-out);
}

.circular-wipe-overlay.active {
  clip-path: circle(150% at 50% 50%);
}

/* ===== Big Text Word ===== */
.big-text-word {
  display: inline-block;
}

/* ===== Fix 3: Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
  padding: 40px;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.mobile-link {
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 480px) {
  .nav-right {
    display: none;
  }

  .floating-nav {
    display: none;
  }

  .hero-headline h1 {
    font-size: 40px;
  }
}

/* ===== Fix 4: Case Carousel ===== */
.case-cards-wrapper {
  position: relative;
  min-height: auto;
  overflow: hidden;
}

.case-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.case-card.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* ===== Loading Indicator ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s var(--ease-out);
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}