/* ==========================================================================
   5cubix — Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Base Resets
   -------------------------------------------------------------------------- */
:root {
  --lime: #afe046;
  --blue: #0a7ae0;
  --ink: #000000;
  --paper: #ffffff;
  --muted: #b9b9b9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Manrope', sans-serif;
  overflow-x: clip;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

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

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

main {
  padding-top: 90px;
}

/* Typography Utility Classes */
.serif-accent {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}

.serif-lime {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  color: var(--lime) !important;
}

.serif-blue {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  color: var(--blue) !important;
}

.label-white {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   2. Background Effects & Layout Wrappers
   -------------------------------------------------------------------------- */
.noise {
  position: fixed;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  z-index: 30;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.grid {
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

.wrap {
  width: min(1240px, calc(100% - 48px));
  min-width: 0;
  margin: auto;
}

section {
  padding: 125px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 60px;
  align-items: flex-end;
}

.section-label {
  font: 16px 'DM Mono', monospace;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-note {
  max-width: 280px;
  color: #a8a8a8;
  font-size: 16px;
  line-height: 1.65;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  max-width: 730px;
}

/* --------------------------------------------------------------------------
   3. Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 25;
  background: #000000e8;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.25, 1),
    border-color 0.35s ease;
}

.site-header.is-scrolled {
  border-color: #ffffff25;
}

.site-header.is-hidden {
  transform: translateY(-105%);
}

nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 4;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 115px;
  height: 61px;
  object-fit: contain;
  object-position: left center;
}

.links {
  display: flex;
  gap: 30px;
  color: #c8c8c8;
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  text-transform: uppercase;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 18px;
  border: 1px solid var(--paper);
  transition: 0.3s ease;
}

.nav-cta:hover,
.button.dark:hover {
  background: var(--lime);
  color: #000;
  border-color: var(--lime);
}

.mobile-toggle,
.mobile-menu {
  display: none;
}

/* --------------------------------------------------------------------------
   4. Hero Section & 3D Animated Cube
   -------------------------------------------------------------------------- */
.hero {
  min-height: calc(100vh - 90px);
  position: relative;
  display: flex;
  align-items: center;
  padding: 45px 0 86px;
  overflow: hidden;
}

.hero > div:first-child {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--lime);
  text-transform: uppercase;
  font: 16px 'DM Mono', monospace;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow:before {
  content: '';
  background: var(--lime);
  width: 28px;
  height: 1px;
}

h1 {
  font-size: clamp(4.1rem, 10.1vw, 9.5rem);
  letter-spacing: -0.085em;
  line-height: 0.81;
  margin: 28px 0 34px;
  max-width: 1100px;
  font-weight: 800;
}

h1 em {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.06em;
  color: var(--lime);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 30px;
}

.hero-copy {
  max-width: 405px;
  color: #cacaca;
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #000;
}

.button.lime:hover {
  transform: translateY(-4px);
  box-shadow: 0 9px 0 var(--blue);
}

.button.dark {
  background: #000;
}

.button.outline-blue {
  border-color: var(--blue);
  color: var(--paper);
}

.button.outline-blue:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.scroll-label {
  position: absolute;
  bottom: 28px;
  right: 0;
  font: 16px 'DM Mono', monospace;
  color: #a6a6a6;
  writing-mode: vertical-rl;
  letter-spacing: 0.12em;
  animation: pulse 2.5s infinite;
}

/* 3D Cube Structure & Orbits */
.hero-cube {
  position: absolute;
  top: 50%;
  right: 0;
  width: 440px;
  height: 440px;
  perspective: 1000px;
  pointer-events: none;
  opacity: 0.92;
  transform: translateY(-50%) rotate(-9deg);
  z-index: 0;
}

.cube-motion {
  position: absolute;
  inset: 0;
  animation: cube-drift 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.cube-glow {
  position: absolute;
  inset: 58px;
  background: radial-gradient(
    circle,
    #afe046aa 0 9%,
    #0a7ae070 27%,
    transparent 68%
  );
  filter: blur(16px);
  animation: glow-pulse 3.4s ease-in-out infinite;
}

.cube-orbit {
  position: absolute;
  border: 1px solid #afe046a8;
  border-radius: 50%;
  transform-style: preserve-3d;
}

.cube-orbit.one {
  inset: 28px 5px;
  transform: rotateX(67deg) rotateZ(18deg);
  animation: orbit-one 7s linear infinite;
}

.cube-orbit.two {
  inset: 45px 2px;
  border-color: #0a7ae0;
  transform: rotateY(68deg) rotateZ(-15deg);
  animation: orbit-two 9s linear infinite reverse;
}

.cube-motion .cube-3d {
  z-index: 1;
}

.cube-3d {
  position: absolute;
  top: 110px;
  left: 110px;
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  animation: spin-cube 14s linear infinite;
}

.cube-face {
  position: absolute;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff70;
  box-shadow: inset 0 0 40px #ffffff20;
  backface-visibility: visible;
}

.cube-face::after {
  content: '';
  width: 72%;
  height: 72%;
  border: 1px solid #ffffff50;
}

.cube-face.front {
  background: #0a7ae0e6;
  transform: translateZ(110px);
}

.cube-face.back {
  background: #000000ee;
  transform: rotateY(180deg) translateZ(110px);
}

.cube-face.right {
  background: #afe046e6;
  transform: rotateY(90deg) translateZ(110px);
}

.cube-face.left {
  background: #073b74e6;
  transform: rotateY(-90deg) translateZ(110px);
}

.cube-face.top {
  background: #ffffff;
  transform: rotateX(90deg) translateZ(110px);
}

.cube-face.bottom {
  background: #5a7a20;
  transform: rotateX(-90deg) translateZ(110px);
}

/* --------------------------------------------------------------------------
   5. Ticker Banner
   -------------------------------------------------------------------------- */
.ticker {
  border-block: 1px solid #ffffff30;
  overflow: hidden;
  background: var(--lime);
  color: #000;
  padding: 15px 0;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 38px;
  align-items: center;
  min-width: max-content;
  animation: marquee 24s linear infinite;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ticker b {
  color: var(--blue);
  font-size: 17px;
}

/* --------------------------------------------------------------------------
   6. Services Section
   -------------------------------------------------------------------------- */
.services-section {
  position: relative;
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
}

.services-section::before {
  content: '5';
  position: absolute;
  right: -0.08em;
  top: -0.3em;
  font: clamp(15rem, 35vw, 33rem) / 1 'Instrument Serif', serif;
  color: #0a7ae033;
  pointer-events: none;
}

.services-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(#000 1px, transparent 1px),
    linear-gradient(90deg, #000 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

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

.services-section .section-label {
  color: var(--blue);
}

.services-section h2 span {
  color: var(--blue) !important;
}

.services-section .section-note {
  color: #172505;
}

.services-section .services {
  border-color: #00000050;
}

.services {
  border-top: 1px solid #ffffff30;
}

.service {
  display: grid;
  grid-template-columns: 90px 1.15fr 1fr 36px;
  gap: 25px;
  align-items: center;
  border-bottom: 1px solid #ffffff30;
  padding: 27px 4px;
  transition: 0.35s ease;
}

.service:hover {
  padding-left: 18px;
  background: var(--lime);
  color: #000;
}

.service-num {
  font: 16px 'DM Mono', monospace;
  color: var(--blue);
}

.service h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.service p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #aaa;
}

.service:hover p {
  color: #111;
}

.arrow {
  font-size: 24px;
  transition: 0.3s;
}

.service:hover .arrow {
  transform: rotate(-45deg);
}

/* Service overrides inside services-section */
.services-section .service {
  position: relative;
  isolation: isolate;
  z-index: 0;
  grid-template-columns: 72px 1.15fr 1fr 36px;
  border-color: #00000050;
  padding: 22px 8px;
}

.services-section .service::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--blue);
  transition: width 0.42s cubic-bezier(0.2, 0.65, 0.25, 1);
  z-index: -1;
}

.services-section .service:hover {
  padding-left: 18px;
  background: transparent;
  color: #fff;
}

.services-section .service:hover::after {
  width: 100%;
}

.services-section .service p {
  color: #273d10;
}

.services-section .service:hover p {
  color: #e3f1ff;
}

.services-section .service-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.25, 1),
    box-shadow 0.35s ease;
}

.services-section .service:hover .service-num {
  transform: rotate(18deg) scale(1.08);
  box-shadow: 7px 7px 0 var(--lime);
}

.services-section .arrow {
  color: var(--blue);
}

.services-section .service:hover .arrow {
  color: var(--lime);
}

/* --------------------------------------------------------------------------
   7. Agile Approach Section & Tech Stack
   -------------------------------------------------------------------------- */
.approach {
  background: #101010;
  border-block: 1px solid #ffffff22;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #ffffff25;
}

.approach-item {
  padding: 26px 24px 30px;
  min-height: 204px;
  border-right: 1px solid #ffffff25;
  border-bottom: 1px solid #ffffff25;
  transition: background 0.3s ease, color 0.3s ease;
}

.approach-item:nth-child(3n) {
  border-right: 0;
}

.approach-item:hover {
  background: var(--lime);
  color: #000;
}

.approach-num {
  display: block;
  color: var(--lime);
  font: 16px 'DM Mono', monospace;
  margin-bottom: 40px;
}

.approach-item:hover .approach-num {
  color: var(--blue);
}

.approach-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.05em;
}

.approach-item p {
  margin: 0;
  color: #adadad;
  font-size: 16px;
  line-height: 1.6;
}

.approach-item:hover p {
  color: #181818;
}

.technology-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.technology-row span {
  border: 1px solid #ffffff38;
  padding: 8px 10px;
  color: #d7d7d7;
  font: 16px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   8. Selected Work Section
   -------------------------------------------------------------------------- */
.work {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.work .section-label {
  color: var(--blue);
}

.work:after {
  content: '05';
  position: absolute;
  right: -0.03em;
  top: -0.25em;
  font: 28vw / 1 'Instrument Serif';
  color: #afe046;
  opacity: 0.55;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.case {
  min-height: 365px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.case:first-child {
  min-height: 505px;
  background: var(--blue);
  color: white;
}

.case:nth-child(2) {
  background: var(--lime);
}

.case:nth-child(3) {
  background: #121212;
  color: white;
}

.case:nth-child(4) {
  background: #e9e9e9;
}

.case:nth-child(5) {
  background: #e5e7eb;
  color: #000000;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  font: 16px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.case h3 {
  margin: 0;
  max-width: 430px;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.35rem, 3.7vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.case h3 span {
  font-family: Manrope, sans-serif;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: -0.08em;
  font-style: italic;
}

.case-shape {
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 260px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.24;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  transform-origin: 55% 55%;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.case:hover .case-shape {
  transform: translate3d(-13px, -10px, 0) rotate(18deg) scale(1.06);
  opacity: 0.31;
}

.case:nth-child(2):hover .case-shape {
  transform: translate3d(-10px, -12px, 0) rotate(-16deg) scale(1.06);
}

.case:nth-child(3):hover .case-shape {
  transform: translate3d(-13px, -10px, 0) rotate(13deg) scale(1.06);
}

.case:nth-child(4):hover .case-shape {
  transform: translate3d(-12px, -12px, 0) rotate(-11deg) scale(1.06);
}

.case:nth-child(5):hover .case-shape {
  transform: translate3d(-13px, -10px, 0) rotate(15deg) scale(1.06);
}

/* --------------------------------------------------------------------------
   9. About Section & Animated Facts
   -------------------------------------------------------------------------- */
.about {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 65px;
}

.big-copy {
  font-size: clamp(2rem, 3.8vw, 4rem);
  letter-spacing: -0.065em;
  line-height: 1.03;
  margin: 0;
}

.big-copy em {
  color: var(--lime);
  font-family: 'Instrument Serif';
  font-weight: 400;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: end;
}

.fact {
  border: 1px solid #ffffff25;
  padding: 22px;
}

.fact strong {
  display: block;
  font-size: 38px;
  letter-spacing: -0.08em;
  color: var(--lime);
}

.fact span {
  font: 16px 'DM Mono', monospace;
  color: #9c9c9c;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   10. Contact Section & Footer
   -------------------------------------------------------------------------- */
.contact {
  background: var(--blue);
  color: #fff;
  padding: 112px 0 35px;
}

.contact h2 {
  font-size: clamp(3.5rem, 8vw, 7.8rem);
  max-width: 1000px;
}

.contact h2 em {
  font-family: 'Instrument Serif';
  font-weight: 400;
  color: var(--lime);
}

.contact-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 65px;
}

.email {
  font-size: clamp(1.2rem, 2.3vw, 2rem);
  border-bottom: 2px solid var(--lime);
  padding-bottom: 8px;
}

.footer {
  border-top: 1px solid #ffffff40;
  padding-top: 25px;
  margin-top: 95px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: #ffffffb0;
  font: 16px 'DM Mono', monospace;
  text-transform: uppercase;
}

.footer-logo {
  width: 114px;
  height: 59px;
  object-fit: contain;
  object-position: left center;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff55;
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.social-link[aria-label='WhatsApp'] {
  position: relative;
}

.social-link[aria-label='WhatsApp'] svg {
  display: none;
}

.social-link[aria-label='WhatsApp']::before {
  content: '✆';
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font: 16px / 1 'DM Mono', monospace;
  transform: rotate(-20deg);
}

.social-link:hover {
  transform: translateY(-4px) rotate(-5deg);
  background: var(--lime);
  border-color: var(--lime);
  color: #000;
}

/* --------------------------------------------------------------------------
   11. Modal Dialog & Form Styling
   -------------------------------------------------------------------------- */
.form-trigger {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.36s ease, visibility 0s linear 0.36s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.36s ease, visibility 0s linear;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #000000bd;
  backdrop-filter: blur(0);
  opacity: 0;
  transition: opacity 0.36s ease, backdrop-filter 0.36s ease;
}

.modal.is-open .modal-backdrop {
  opacity: 1;
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  width: min(100%, 590px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 34px;
  background: #fff;
  color: #000;
  box-shadow: 12px 12px 0 var(--lime);
  opacity: 0;
  transform: translateY(36px) scale(0.93) rotateX(8deg);
  transition: opacity 0.32s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.is-open .modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 23px;
  cursor: pointer;
}

.modal-kicker {
  color: var(--blue);
  font: 16px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.modal h2 {
  margin: 12px 45px 26px 0;
  font-size: clamp(2.3rem, 7vw, 4rem);
  letter-spacing: -0.075em;
}

.contact-form {
  display: grid;
  gap: 17px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font: 16px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  color: #000;
  font: 500 16px Manrope, sans-serif;
  outline: 0;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 2px 0 var(--blue);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.form-submit {
  justify-content: space-between;
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 15px 18px;
  font: 700 16px Manrope, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
}

.form-submit:hover {
  background: #000;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: #0a5a15;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   11b. Scroll to Top Floating Button
   -------------------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff55;
  background: #000000d0;
  color: var(--paper);
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.2, 0.65, 0.25, 1), visibility 0.35s ease,
    background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #000000;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(175, 224, 70, 0.35);
}

/* --------------------------------------------------------------------------
   12. Text Split Animations & Reveal Classes
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.title-animate .title-char,
.title-animate .title-word {
  display: inline-block;
  opacity: 0;
  filter: blur(13px);
  transform: translate3d(0, 28px, 0) rotateX(-38deg);
  transform-origin: bottom center;
  transition: opacity 0.55s ease, filter 0.7s ease,
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--char-delay);
}

.title-animate.title-is-visible .title-char,
.title-animate.title-is-visible .title-word {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) rotateX(0);
}

.case h3 .title-word {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   13. Animation Keyframes
   -------------------------------------------------------------------------- */
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes spin-cube {
  0% {
    transform: rotateX(-22deg) rotateY(18deg) rotateZ(0deg) scale(1);
  }
  45% {
    transform: rotateX(155deg) rotateY(206deg) rotateZ(125deg) scale(1.06);
  }
  100% {
    transform: rotateX(338deg) rotateY(378deg) rotateZ(360deg) scale(1);
  }
}

@keyframes cube-drift {
  50% {
    transform: translate3d(-13px, -18px, 22px) rotateZ(3deg);
  }
}

@keyframes glow-pulse {
  50% {
    transform: scale(1.22);
    opacity: 0.55;
  }
}

@keyframes orbit-one {
  to {
    transform: rotateX(67deg) rotateZ(378deg);
  }
}

@keyframes orbit-two {
  to {
    transform: rotateY(68deg) rotateZ(345deg);
  }
}

@keyframes pulse {
  50% {
    transform: translateY(7px);
    opacity: 0.35;
  }
}

/* --------------------------------------------------------------------------
   14. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .links {
    gap: 18px;
  }
  .hero-bottom {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .about-grid {
    gap: 38px;
  }
  .case {
    min-height: 320px;
    padding: 22px;
  }
  .case:first-child {
    min-height: 440px;
  }
  .case-shape {
    font-size: 210px;
  }
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-item:nth-child(3n) {
    border-right: 1px solid #ffffff25;
  }
  .approach-item:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  main {
    padding-top: 72px;
  }
  .wrap {
    width: min(100% - 30px, 1240px);
  }
  nav {
    height: 72px;
  }
  .brand img {
    width: 98px;
    height: 51px;
  }
  .links {
    display: none;
  }
  .nav-cta {
    padding: 11px 12px;
    font-size: 16px;
  }
  .hero {
    min-height: calc(100vh - 72px);
    padding-top: 25px;
  }
  .hero-bottom,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .scroll-label {
    display: none;
  }
  section {
    padding: 78px 0;
  }
  .section-head {
    display: block;
    margin-bottom: 37px;
  }
  .section-note {
    margin-top: 20px;
  }
  .service {
    grid-template-columns: 45px 1fr 25px;
    gap: 8px;
  }
  .service p {
    grid-column: 2/4;
  }
  .service h3 {
    font-size: 22px;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .case,
  .case:first-child {
    min-height: 300px;
  }
  .case:first-child {
    min-height: 390px;
  }
  .facts {
    margin-top: 0;
  }
  .contact {
    padding-top: 78px;
  }
  .contact-bottom,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer {
    gap: 12px;
    margin-top: 70px;
  }
  .case-shape {
    font-size: 200px;
  }

  /* Mobile Header & Hamburger Menu */
  .site-header {
    position: fixed !important;
  }
  .site-header.is-menu-open {
    transform: translateY(0) !important;
    background: #000;
    border-color: #ffffff25;
  }
  .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #ffffff55;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .mobile-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 0;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.18s ease;
  }
  .site-header.is-menu-open .mobile-toggle span:nth-child(1) {
    opacity: 1;
    transform: translateY(6.5px) rotate(45deg);
  }
  .site-header.is-menu-open .mobile-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.3);
  }
  .site-header.is-menu-open .mobile-toggle span:nth-child(3) {
    opacity: 1;
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.65, 0.25, 1);
    border-top: 1px solid transparent;
  }
  .site-header.is-menu-open .mobile-menu {
    grid-template-rows: 1fr;
    border-color: #ffffff25;
  }
  .mobile-menu-inner {
    overflow: hidden;
  }
  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px 0 22px;
  }
  .mobile-menu a {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    padding: 9px 0;
    border-bottom: 1px solid #ffffff20;
  }
  .mobile-menu a:last-child {
    margin-top: 12px;
    color: var(--lime);
    border-bottom: 0;
    font: 16px 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 82px;
  }
  .wrap {
    width: calc(100% - 28px);
  }
  h1 {
    font-size: clamp(3.15rem, 16vw, 4.4rem);
    line-height: 0.86;
    letter-spacing: -0.08em;
    margin: 22px 0 28px;
  }
  .hero {
    padding: 16px 0 55px;
  }
  .hero-cube {
    top: 18px;
    right: 8px;
    transform: scale(0.55) rotate(-9deg);
    transform-origin: top right;
    opacity: 0.58;
  }
  .hero-copy {
    font-size: 16px;
    line-height: 1.6;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .button {
    justify-content: space-between;
    width: 100%;
  }
  .ticker {
    padding: 12px 0;
  }
  .ticker-inner {
    font-size: 16px;
    gap: 23px;
  }
  .section-head {
    margin-bottom: 30px;
  }
  section {
    padding: 66px 0;
  }
  .section-note {
    font-size: 16px;
  }
  .service {
    padding: 21px 0;
    grid-template-columns: 36px minmax(0, 1fr) 24px;
  }
  .service h3 {
    font-size: 20px;
  }
  .service p {
    font-size: 16px;
  }
  .service:hover {
    padding-left: 8px;
  }
  .work-grid {
    gap: 12px;
  }
  .case,
  .case:first-child {
    min-height: 278px;
    padding: 20px;
  }
  .case:first-child {
    min-height: 340px;
  }
  .case h3 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }
  .case-shape {
    font-size: 170px;
    right: -16px;
    bottom: -27px;
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .approach-item,
  .approach-item:nth-child(3n) {
    border-right: 0;
    min-height: 0;
    padding: 22px 18px;
  }
  .approach-num {
    margin-bottom: 22px;
  }
  .technology-row {
    margin-top: 25px;
  }
  .about-grid {
    gap: 32px;
  }
  .big-copy {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .facts {
    gap: 9px;
  }
  .fact {
    padding: 16px 12px;
    min-height: 106px;
  }
  .fact strong {
    font-size: 32px;
  }
  .fact span {
    font-size: 16px;
    line-height: 1.45;
    display: block;
  }
  .contact {
    padding-top: 67px;
  }
  .contact-bottom {
    margin-top: 45px;
  }
  .footer-logo {
    width: 105px;
    height: 55px;
  }
  .footer {
    margin-top: 58px;
  }
  .nav-cta {
    font-size: 0;
    padding: 11px 13px;
  }
  .nav-cta::after {
    content: 'Talk ↗';
    font-size: 16px;
  }
  .brand img {
    width: 90px;
    height: 48px;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
