/* =========================================================
   JYSA Media — global styles
   Standardized, readable CSS structure
   ========================================================= */

:root {
  --red: #e31324;
  --red-dark: #b80e1e;
  --red-soft: #fff5f6;
  --red-line: #f2c5ca;
  --white: #ffffff;
  --off-white: #fffafa;
  --ink: #171717;
  --text-muted: #74343b;
  --shadow: rgba(227, 19, 36, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1380px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 12px;
  left: 2.5vw;
  right: 2.5vw;
  z-index: 100;
  min-height: 70px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(227, 19, 36, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(227, 19, 36, 0.08);
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  color: var(--red);
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}

.brand-subtitle {
  margin-bottom: 2px;
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-left: auto;
}

.site-nav a,
.footer-nav a {
  position: relative;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after,
.footer-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 10px 24px var(--shadow);
}

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

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 7px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--red);
}

/* ---------------------------------------------------------
   Homepage section-transition animation
   --------------------------------------------------------- */

.section {
  position: relative;
}

.section-transition-line {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 84px;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(227, 19, 36, 0.18);
  pointer-events: none;
  overflow: hidden;
  opacity: 0.95;
}

.section-transition-line span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--red);
  transform: translateX(calc(-16px + (var(--transition-progress, 0) * 84px)));
  opacity: var(--transition-opacity, 0);
  will-change: transform, opacity;
}

.section-red .section-transition-line {
  background: rgba(255, 255, 255, 0.28);
}

.section-red .section-transition-line span {
  background: var(--white);
}

/* ---------------------------------------------------------
   Shared UI
   --------------------------------------------------------- */

.section {
  padding: 110px 6vw;
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: var(--red-soft);
}

.section-red {
  background: var(--red);
  color: var(--white);
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.section-red .eyebrow {
  color: var(--white);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--red);
}

.dot-white {
  background: var(--white);
}

.section-title {
  margin: 18px 0;
  color: var(--red);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 5.2vw, 82px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.section-title-white {
  color: var(--white);
}

.text-red {
  color: var(--red);
}

.text-box {
  display: inline-block;
  padding: 0 0.08em;
  border-radius: 0.08em;
  background: var(--red);
  color: var(--white);
  transform: rotate(-1deg);
}

.content-block {
  max-width: 760px;
}

.content-block p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.content-block-light p {
  color: #ffecef;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 14px 30px var(--shadow);
}

.button-outline {
  background: var(--white);
  color: var(--red);
}

.button-white {
  border-color: var(--white);
  background: var(--white);
  color: var(--red);
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  min-height: 100vh;
  padding: 145px 6vw 60px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 20px;
  background: radial-gradient(
    circle at 80% 30%,
    #ffffff 0 20%,
    #fff5f6 48%,
    #ffffff 72%
  );
}

.hero-title {
  margin: 18px 0;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero-description {
  max-width: 520px;
  margin: 0;
  color: #7d2d35;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0;
}

.metrics {
  display: flex;
  gap: 30px;
  margin-top: 35px;
}

.metric {
  padding-right: 30px;
  border-right: 1px solid var(--red-line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--red);
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
}

.metric span {
  color: #95313b;
  font-size: 11px;
}

.hero-scene {
  position: relative;
  height: 620px;
  perspective: 1200px;
  margin-top: -150px;
}

.scene-halo {
  position: absolute;
  inset: 70px 40px 40px 20px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffffff 0 46%,
    #ffdfe3 47% 65%,
    transparent 66%
  );
  filter: drop-shadow(0 20px 55px rgba(227, 19, 36, 0.15));
}

.scene-ring {
  position: absolute;
  left: 52%;
  top: 51%;
  border: 2px solid rgba(227, 19, 36, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 18s linear infinite;
}

.scene-ring-1 {
  width: 460px;
  height: 460px;
}

.scene-ring-2 {
  width: 360px;
  height: 360px;
  animation-direction: reverse;
  animation-duration: 12s;
}

.scene-ring-3 {
  width: 270px;
  height: 270px;
  animation-duration: 8s;
}

.device {
  position: absolute;
  left: 50%;
  top: 51%;
  width: 240px;
  height: 430px;
  border: 3px solid var(--red);
  border-radius: 32px;
  background: linear-gradient(160deg, #ffffff, #f8d9dd 65%, #ffffff);
  box-shadow:
    30px 35px 50px rgba(227, 19, 36, 0.18),
    inset 0 0 0 8px #ffffff;
  transform: translate(-50%, -50%) rotateX(2deg) rotateY(-18deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  animation: deviceFloat 4s ease-in-out infinite;
}

.device::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 82px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: var(--red);
  transform: translateX(-50%);
}

.device-screen {
  position: absolute;
  inset: 54px 18px 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #f7b7be;
  border-radius: 23px;
  background: linear-gradient(145deg, #ffffff, #fff1f3);
}

.screen-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -2px;
}

.screen-brand span {
  display: block;
  margin-top: 4px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
}

.screen-card {
  padding: 16px;
  border: 1px solid #f5c4c9;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(227, 19, 36, 0.08);
}

.screen-card small {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
}

.screen-card strong {
  color: var(--red);
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
}

.chart {
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.bar {
  flex: 1;
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: var(--red);
}

.bar-1 { height: 25%; }
.bar-2 { height: 42%; }
.bar-3 { height: 50%; }
.bar-4 { height: 70%; }
.bar-5 { height: 84%; }
.bar-6 { height: 100%; }

.floating-card {
  position: absolute;
  padding: 12px 15px;
  border: 2px solid var(--red);
  border-radius: 18px;
  background: var(--white);
  color: var(--red);
  font-weight: 800;
  box-shadow: 15px 18px 35px rgba(227, 19, 36, 0.12);
  animation: cardFloat 4s ease-in-out infinite;
}

.floating-card-top {
  top: 88px;
  right: 35px;
}

.floating-card-left {
  top: 250px;
  left: 0;
  animation-delay: 0.6s;
}

.floating-card-bottom {
  right: 15px;
  bottom: 80px;
  animation-delay: 1s;
}

.scroll-note {
  position: absolute;
  bottom: 15px;
  left: 50%;
  color: #b85b64;
  font-size: 11px;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

/* ---------------------------------------------------------
   About / 3D cube
   --------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.about-scene {
  position: relative;
  height: 430px;
  overflow: hidden;
  border: 1px solid var(--red-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #ffffff, #fff5f6);
  perspective: 1100px;
}

.cube {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%) rotateX(-20deg) rotateY(30deg);
  transform-style: preserve-3d;
  z-index: 3;
}


.cube-face {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  border: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.78);
  color: var(--red);
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  backdrop-filter: blur(5px);
}


.cube-face {
  color: var(--red);
  text-decoration: none;
  cursor: pointer;
}

.cube-face:hover {
  color: var(--red-dark);
}

.cube-front { transform: translateZ(95px); }
.cube-back { transform: rotateY(180deg) translateZ(95px); }
.cube-right { transform: rotateY(90deg) translateZ(95px); }
.cube-left { transform: rotateY(-90deg) translateZ(95px); }
.cube-top { transform: rotateX(90deg) translateZ(95px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(95px); }

/* ---------------------------------------------------------
   Services
   --------------------------------------------------------- */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

/* ---------------------------------------------------------
   Services
   --------------------------------------------------------- */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}


.services-stack {
  margin-top: 50px;
  width: 100%;
  overflow: visible;
}

.services-stack-stage {
  position: relative;
  width: min(1380px, 100%);
  height: 570px;
  margin: 0 auto;
  perspective: 1600px;
  transform-style: preserve-3d;
  overflow: visible;
}

.service-card.service-stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 455px;
  margin: 0;
  padding: 24px 21px 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--red-line);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(255,245,247,.92));
  color: var(--red-dark);
  box-shadow: 0 22px 44px rgba(227, 19, 36, 0.10);
  transform-origin: 50% 92%;
  will-change: transform, opacity, box-shadow;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition:
    transform 1.20s cubic-bezier(0.22, 0.78, 0.2, 1),
    opacity 1.20s cubic-bezier(0.22, 0.78, 0.2, 1),
    box-shadow 0.7s ease,
    border-color 0.35s ease;
  cursor: pointer;
  overflow: hidden;
}

.service-card.service-stack-card.service-card-ghost {
  pointer-events: none !important;
}

.service-card.service-stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,220,225,.10));
}

.service-card.service-stack-card:hover {
  border-color: var(--red);
}

.service-card.service-stack-card.is-stack-card {
  opacity: 1;
}

.service-card.service-stack-card .service-number,
.service-card.service-stack-card .service-icon,
.service-card.service-stack-card h3,
.service-card.service-stack-card .service-list {
  position: relative;
  z-index: 1;
}

.service-card.service-stack-card .service-number {
  align-self: flex-end;
  color: #bd5d67;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.service-card.service-stack-card .service-icon {
  margin: 14px 0 20px;
  color: var(--red);
  font-size: 31px;
  line-height: 1;
}

.service-card.service-stack-card h3 {
  margin: 0;
  min-height: 50px;
  color: #3f1a20;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  line-height: 1.05;
}

.service-card.service-stack-card .service-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #5d2f36;
  font-size: 12px;
  line-height: 1.5;
}

.service-card.service-stack-card .service-list li {
  margin-bottom: 6px;
}

.service-icon-growth {
  width: 38px;
  height: 38px;
  display: block;
}

.service-icon-growth svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon-growth .growth-line {
  stroke-width: 3;
}

.service-icon-growth .growth-arrow {
  stroke-width: 2.4;
}

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

/* ---------------------------------------------------------
   Work
   --------------------------------------------------------- */

.section-heading-light {
  color: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 45px;
}

.case-card {
  padding: 18px;
  overflow: hidden;
  border: 1px solid #f1c0c6;
  border-radius: 22px;
  background: var(--white);
  color: #41181d;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.16);
}

.case-visual {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffffff, #ffe5e8);
}

.case-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid #f0aeb6;
  border-radius: 999px;
  background: var(--white);
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.product {
  position: absolute;
  border: 3px solid var(--red);
  background: var(--white);
  box-shadow: 16px 22px 30px rgba(227, 19, 36, 0.18);
}

.product-phone,
.product-device {
  width: 120px;
  height: 185px;
  left: 25%;
  top: 18%;
  border-radius: 22px;
  transform: rotate(-12deg);
}

.product-phone::after,
.product-device::after {
  content: "";
  position: absolute;
  top: 35px;
  right: 12px;
  left: 12px;
  height: 95px;
  border-radius: 12px;
  background: linear-gradient(#ffffff, #ffccd1);
}

.product-device {
  left: 48%;
  background: #fff4f5;
  transform: rotate(12deg);
}

.product-screen {
  width: 180px;
  height: 110px;
  left: 38%;
  top: 30%;
  border-radius: 16px;
  transform: rotate(-5deg);
}

.case-card > strong {
  display: block;
  margin-top: 17px;
  color: var(--red);
  font-family: "Space Grotesk", sans-serif;
  font-size: 50px;
}

.case-card > p {
  margin: 5px 0 15px;
  color: #8c4b53;
  font-size: 13px;
}

.case-card > a {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

/* ---------------------------------------------------------
   Clients
   --------------------------------------------------------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 45px;
  border-top: 1px solid var(--red-line);
  border-left: 1px solid var(--red-line);
}

.logo-tile {
  min-height: 120px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--red-line);
  border-bottom: 1px solid var(--red-line);
  color: #651f27;
  font-size: 26px;
  font-weight: 800;
  filter: grayscale(1);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    filter 0.25s ease;
}

.logo-tile:hover {
  background: #fff5f6;
  color: var(--red);
  filter: none;
}

/* ---------------------------------------------------------
   Team
   --------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 45px;
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--red-line);
  border-radius: 22px;
  background: var(--white);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 44px var(--shadow);
}

.portrait {
  position: relative;
  height: 250px;
  display: grid;
  place-items: end center;
  background: linear-gradient(160deg, #ffe8eb, #ffffff);
}

.portrait-soft-1 {
  background: linear-gradient(160deg, #fff3f4, #ffffff);
}

.portrait-soft-2 {
  background: linear-gradient(160deg, #ffe9ec, #ffffff);
}

.portrait-soft-3 {
  background: linear-gradient(160deg, #ffd5da, #ffffff);
}

.portrait::before {
  content: "";
  width: 160px;
  height: 210px;
  position: absolute;
  bottom: 0;
  border: 3px solid var(--red);
  border-radius: 90px 90px 20px 20px 20px;
  background: linear-gradient(#ffffff, #ffd6da);
}

.portrait-head {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--white);
  transform: translateX(-50%);
}

.team-copy {
  padding: 16px;
}

.team-copy strong {
  display: block;
  color: #4a171e;
}

.team-copy span {
  color: #a35a63;
  font-size: 11px;
}

/* ---------------------------------------------------------
   Careers / Contact
   --------------------------------------------------------- */

.careers {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.career-art {
  position: relative;
  height: 360px;
  overflow: hidden;
  border: 2px solid var(--white);
  border-radius: 30px;
  background: linear-gradient(135deg, #fff, #ffe3e7);
}

.career-bag {
  position: absolute;
  right: 15%;
  bottom: 16%;
  width: 150px;
  height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 4px solid var(--red);
  border-radius: 18px;
  background: var(--white);
  color: var(--red);
  transform: rotate(10deg);
  box-shadow: 18px 25px 35px rgba(126, 0, 12, 0.2);
}

.career-bag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -36px;
  width: 80px;
  height: 45px;
  border: 4px solid var(--red);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  transform: translateX(-50%);
}

.career-bag span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
}

.career-bag small {
  margin-top: -2px;
  letter-spacing: 4px;
  font-size: 10px;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-copy {
  color: #ffecef;
  font-size: 17px;
  line-height: 1.6;
}

 .contact-details {
  color: var(--white);
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.contact-detail-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.contact-detail-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  padding: 26px;
  border-radius: 25px;
  background: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #efb5bb;
  border-radius: 12px;
  outline: none;
  background: var(--white);
  color: #751d27;
}

.form-grid textarea {
  grid-column: 1 / -1;
  min-height: 130px;
  resize: vertical;
}

.button-submit {
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: var(--red);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.button-submit:disabled,
.talk-modal-form button[type="submit"]:disabled {
  cursor: default;
  transform: none !important;
}

/* Button-level Micro-Animation States */
.button-state-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.button-state-wrap.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.button-state-wrap.is-entering {
  animation: btnStateEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.button-state-text {
  display: inline-block;
  line-height: 1;
}

.button-success-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
  animation: btnCheckPop 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.button-success-icon path {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: btnCheckDraw 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.06s forwards;
}

@keyframes btnStateEnter {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes btnCheckPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  65% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes btnCheckDraw {
  0% {
    stroke-dashoffset: 22;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-state-wrap,
  .button-state-wrap.is-entering,
  .button-success-icon,
  .button-success-icon path {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}

.form-note {
  margin: 12px 0 0;
  color: #7e3942;
  font-size: 11px;
}

/* ---------------------------------------------------------
   Let's Talk modal
   --------------------------------------------------------- */

.talk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.talk-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.talk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(227, 19, 36, 0.28);
  backdrop-filter: blur(5px);
}

.talk-modal-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--red-line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(126, 0, 12, 0.2);
}

.talk-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--red-line);
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.talk-modal-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px;
  color: var(--red);
  font-weight: 700;
}

.talk-modal-email svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.talk-modal-form {
  display: grid;
  gap: 12px;
}

.talk-modal-form input,
.talk-modal-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #efb5bb;
  border-radius: 12px;
  outline: none;
  background: var(--white);
  color: #751d27;
}

.talk-modal-form textarea {
  min-height: 105px;
  resize: vertical;
}

.talk-modal-note {
  margin: 0;
  color: #7e3942;
  font-size: 11px;
}

body.talk-modal-open {
  overflow: hidden;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  padding: 22px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--red-line);
  background: var(--white);
  color: #7e3942;
  font-size: 11px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

/* ---------------------------------------------------------
   Motion
   --------------------------------------------------------- */

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotateX(2deg) rotateY(-18deg) rotateZ(-2deg) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) rotateX(2deg) rotateY(-18deg) rotateZ(-2deg) translateY(-16px);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes cubeSpin {
  to {
    transform: translate(-50%, -50%) rotateX(340deg) rotateY(390deg) rotateZ(20deg);
  }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1100px) {
  .site-nav {
    gap: 15px;
  }

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

  .hero-scene {
    height: 540px;
    margin-top: 0;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 12px;
    left: 12px;
    right: 12px;
    min-height: 62px;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--red-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
  }

  .site-nav.is-open .nav-talk-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 125px 20px 45px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-description {
    font-size: 15px;
  }

  .metrics {
    gap: 15px;
  }

  .metric {
    padding-right: 15px;
  }

  .metric strong {
    font-size: 24px;
  }

  .hero-scene {
    height: 420px;
    overflow-x: clip;
  }

  .about-scene {
    height: 360px;
  }

  .cube {
    width: 160px;
    height: 160px;
  }

  .cube-front { transform: translateZ(80px); }
  .cube-back { transform: rotateY(180deg) translateZ(80px); }
  .cube-right { transform: rotateY(90deg) translateZ(80px); }
  .cube-left { transform: rotateY(-90deg) translateZ(80px); }
  .cube-top { transform: rotateX(90deg) translateZ(80px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(80px); }

  .device {
    width: 180px;
    height: 330px;
  }

  .device::before {
    width: 60px;
    height: 16px;
    top: 8px;
  }

  .device-screen {
    inset: 34px 14px 14px;
    padding: 12px;
    border-radius: 18px;
  }

  .screen-brand {
    font-size: 18px;
  }

  .screen-brand span {
    font-size: 8px;
    margin-top: 2px;
    letter-spacing: 2.5px;
  }

  .screen-card {
    padding: 10px;
    border-radius: 14px;
  }

  .screen-card small {
    font-size: 8px;
    margin-bottom: 3px;
  }

  .screen-card strong {
    font-size: 18px;
  }

  .chart {
    height: 60px;
    gap: 5px;
    margin-top: 5px;
  }

  .scene-ring-1 {
    width: 340px;
    height: 340px;
  }

  .scene-ring-2 {
    width: 260px;
    height: 260px;
  }

  .scene-ring-3 {
    width: 190px;
    height: 190px;
  }

  .floating-card {
    font-size: 10px;
  }

  .section {
    padding: 75px 20px;
  }

  .about-grid,
  .careers,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .services-stack-stage {
    width: 100%;
    height: 520px;
  }

  .service-card.service-stack-card {
    width: 220px;
    height: 430px;
    padding: 22px 19px 24px;
  }

  .service-card.service-stack-card h3 {
    font-size: 19px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .form-grid textarea {
    grid-column: auto;
  }

  .form-grid input,
  .form-grid textarea,
  .talk-modal-form input,
  .talk-modal-form textarea {
    font-size: 16px;
  }

  .talk-modal {
    padding: 14px 10px;
  }

  .talk-modal-dialog {
    width: 100%;
    max-height: 92vh;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .site-footer {
    display: block;
    padding: 20px;
  }

  .footer-nav {
    margin: 18px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(34px, 9.5vw, 44px);
  }

  .hero-scene {
    height: 365px;
    overflow-x: clip;
  }

  .device {
    width: 155px;
    height: 290px;
  }

  .device::before {
    width: 52px;
    height: 14px;
    top: 7px;
  }

  .device-screen {
    inset: 30px 12px 12px;
    padding: 10px;
    border-radius: 16px;
  }

  .screen-brand {
    font-size: 16px;
  }

  .screen-brand span {
    font-size: 7px;
    margin-top: 2px;
    letter-spacing: 2px;
  }

  .screen-card {
    padding: 9px;
    border-radius: 12px;
  }

  .screen-card small {
    font-size: 7px;
    margin-bottom: 2px;
  }

  .screen-card strong {
    font-size: 16px;
  }

  .chart {
    height: 52px;
    gap: 4px;
    margin-top: 4px;
  }

  .scene-ring-1 {
    width: min(280px, 86vw);
    height: min(280px, 86vw);
  }

  .scene-ring-2 {
    width: min(215px, 66vw);
    height: min(215px, 66vw);
  }

  .scene-ring-3 {
    width: min(155px, 48vw);
    height: min(155px, 48vw);
  }

  .floating-card {
    padding: 8px 10px;
  }

  .floating-card-top {
    top: 50px;
  }

  .floating-card-left {
    top: 190px;
  }

  .floating-card-bottom {
    bottom: 50px;
  }

  .services-stack-stage {
    width: 100%;
    height: 445px;
    touch-action: pan-y;
  }

  .service-card.service-stack-card {
    width: min(230px, 72vw);
    height: 400px;
    padding: 20px 17px 21px;
  }

  .service-card.service-stack-card h3 {
    font-size: 17px;
  }

  .service-card.service-stack-card .service-list {
    font-size: 11px;
    line-height: 1.42;
    margin-top: 16px;
  }

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

@media (max-height: 500px) {
  .talk-modal-dialog {
    padding: 16px 14px;
    max-height: 94vh;
  }

  .talk-modal-dialog .section-title {
    font-size: 24px;
  }

  .talk-modal-form textarea {
    min-height: 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

