*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #080808;
  --text-primary: #f0f0f0;
  --text-muted: #888;
  --accent: #e8e8e8;
  --border: #1e1e1e;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-connect {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px solid #a9c6fa40;
  border-radius: 999px;
  background: #142033;
  color: #e6edf7;
  font-size: 13px;
  text-decoration: none;
}

.nav-connect:hover { background: #243553; border-color: #a9c6fa80; }
.nav-connect:focus-visible { outline: 2px solid #b7cdfb; outline-offset: 4px; }

/* Hero intro */
.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 48px;
  background: linear-gradient(170deg, #000000 0%, #2949847a 30%, #000000 100%);
}

.hero-intro-heading {
  width: 100%;
  max-width: 1100px;
  margin: 100px 0 48px;
  text-align: center;
}

.hero-intro-greeting {
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #b9c9e2;
}

.hero-intro-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(28px, 3.6vw, 50px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}

.hero-intro-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.22em;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #a8c9ff;
}

@media (max-width: 600px) {
  .hero-intro-heading { margin-top: 110px; margin-bottom: 36px; }
  .hero-intro-greeting { margin-bottom: 18px; font-size: 14px; }
  .hero-title-break { display: none; }
}

.hero-intro-box {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-intro-box-row1 {
  display: contents;
}

.hero-intro-box-row1 > .hero-intro-col {
  grid-column: span 1;
}

.hero-intro-box-row2 {
  grid-column: 1 / -1;
  padding: 8px 20px 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid transparent;
  border-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2) 15%, rgba(255, 255, 255, 0.4) 20%, transparent) 1;
}

.hero-intro-box-row2 .hero-intro-col:first-child {
  flex: 1;
}

.hero-intro-box-row2 .hero-intro-col:last-child {
  flex-shrink: 0;
}

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

.hero-intro-btn {
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.hero-intro-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-intro-btn--primary {
  height: 36px;
  padding: 0 40px;
  background: linear-gradient(135deg, #4887fc 0%, #6ba3ff 100%);
  border: none;
  border-radius: 18px;
  box-shadow: 0 0 20px rgba(72, 135, 252, 0.4), 0 0 40px rgba(72, 135, 252, 0.2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-intro-btn--primary:hover {
  background: linear-gradient(135deg, #5a96ff 0%, #7db3ff 100%);
  box-shadow: 0 0 30px rgba(72, 135, 252, 0.6), 0 0 60px rgba(72, 135, 252, 0.3);
}

.hero-intro-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: white;
  margin: 0;
}

/* Homepage sections */
.homepage-section {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px clamp(64px, 8vw, 120px);
}

.homepage-section-title {
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
  font-size: clamp(18px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background-image: linear-gradient(to right, #5293FD 0%, #8bb7ff 45%, #ffffff 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

#help-companies {
  padding-bottom: 36px;
}

.homepage-card-hint {
  width: fit-content;
  margin-top: 28px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
}

.homepage-card-hint-icon {
  width: 20px;
  height: 20px;
  display: block;
}

#success-cases {
  min-height: auto;
  justify-content: flex-start;
  padding-top: 36px;
}

.success-case-box {
  width: 100%;
  min-height: 320px;
  margin-top: 40px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.success-case-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 64px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.success-case-banner-text {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255);
}

.success-case-gradient {
  position: absolute;
  z-index: 0;
  inset: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #285CDE 0%, #32D1E8 100%);
  opacity: 0;
  box-shadow: 0 0 0 rgba(77, 175, 255, 0);
  transition:
    opacity 700ms ease,
    box-shadow 900ms ease;
}

.success-case-box.is-visible .success-case-gradient {
  opacity: 1;
  box-shadow:
    0 0 18px rgba(50, 209, 232, 0.28),
    0 0 38px rgba(151, 202, 255, 0.16);
}

.success-case-columns {
  display: grid;
  grid-template-columns: 33fr 67fr;
  gap: 28px;
  margin-top: 24px;
}

.success-case-column {
  min-width: 0;
  min-height: 480px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.success-case-preview {
  padding: 0;
  overflow: hidden;
}

.ar-hud-preview-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.success-case-preview iframe,
.success-case-preview video,
.success-case-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}

.success-case-preview video,
.success-case-preview img {
  object-fit: cover;
}

.success-case-column--image {
  display: flex;
  flex-direction: column;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.success-case-column--gradient-1 {
  background-image: url("homepage assets/casegradient1.svg");
}

.success-case-column--gradient-2 {
  background-image: url("homepage assets/casegradient2.svg");
}

.success-case-column--gradient-3 {
  background-image: url("homepage assets/casegradient3.svg");
}

.success-case-column--gradient-4 {
  background-image: url("homepage assets/casegradient4.svg");
}

.success-case-column--gradient-5 {
  background-image: url("homepage assets/casegradient5.svg");
}

.case-tag {
  width: 100%;
  min-height: 38px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 18px;
  font-style:italic;
  color: rgba(255, 255, 255, 0.86);
}

.case-tag-dot {
  --dot-rgb: 86, 229, 140;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--dot-rgb));
  box-shadow: 0 0 0 0 rgba(var(--dot-rgb), 0.5);
  animation: case-tag-pulse 2s ease-out infinite;
}

.success-case-column--gradient-3 .case-tag-dot {
  --dot-rgb: 180, 130, 255;
}

.success-case-column--gradient-4 .case-tag-dot {
  --dot-rgb: 255, 255, 255;
}

.success-case-column--gradient-5 .case-tag-dot {
  --dot-rgb: 100, 170, 255;
}

.case-title {
  margin-top: 64px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.case-title strong {
  font-weight: 400;
  color: #ffffff;
}

.UX-tag-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.UX-tag {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius:10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.case-button {
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 6px 20px 6px 7px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #080808;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
}

.case-button-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #080808;
}

.case-button-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-transition-lock {
  overflow: hidden;
}

.case-transition {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    background 600ms ease;
}

.case-transition.is-active {
  background: rgba(0, 0, 0, 0.68);
  opacity: 1;
  pointer-events: auto;
}

.case-transition-preview {
  width: min(78vw, 980px);
  height: min(72vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #080808;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  transform: scale(0.94);
  transition:
    width 600ms cubic-bezier(0.76, 0, 0.24, 1),
    height 600ms cubic-bezier(0.76, 0, 0.24, 1),
    border-radius 600ms cubic-bezier(0.76, 0, 0.24, 1),
    transform 600ms cubic-bezier(0.76, 0, 0.24, 1);
}

.case-transition.is-active .case-transition-preview {
  transform: scale(1);
}

.case-transition.is-expanded .case-transition-preview {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  transform: scale(1);
}

.case-transition-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #080808;
}

.ar-hud-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    background 600ms ease;
}

.ar-hud-modal.is-active {
  background: rgba(0, 0, 0, 0.68);
  opacity: 1;
  pointer-events: auto;
}

.ar-hud-modal-viewport {
  position: relative;
  width: min(78vw, 980px);
  height: min(72vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #080808;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  transform: scale(0.94);
  transition: transform 600ms cubic-bezier(0.76, 0, 0.24, 1);
}

.ar-hud-modal.is-active .ar-hud-modal-viewport {
  transform: scale(1);
}

.ar-hud-modal-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080808;
}

.ar-hud-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.72);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

@keyframes case-tag-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--dot-rgb), 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(var(--dot-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--dot-rgb), 0);
  }
}

.homepage-card-grid {
  width: 100%;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 64px;
}

.homepage-card {
  position: relative;
  min-height: 300px;
  border-radius: 16px;
  perspective: 1100px;
  outline: none;
}

.homepage-card-inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.homepage-card:hover .homepage-card-inner,
.homepage-card:focus .homepage-card-inner,
.homepage-card:focus-within .homepage-card-inner {
  transform: rotateY(180deg);
}

.homepage-card:focus-visible {
  outline: 2px solid #8bb7ff;
  outline-offset: 5px;
}

.homepage-card-face {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.homepage-card-front {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent 40%),
    linear-gradient(to top, rgba(255, 255, 255, 0.02), transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02), transparent 40%),
    linear-gradient(to left, rgba(255, 255, 255, 0.02), transparent 40%);
}

.homepage-card-back {
  justify-content: flex-end;
  padding: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 10%, rgba(121, 208, 255, 0.9), transparent 35%),
    linear-gradient(145deg, #174fc7 0%, #2878ef 52%, #38b9ef 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: rotateY(180deg);
}

.homepage-card-back::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  top: -70px;
  right: -55px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.homepage-card-back-title,
.homepage-card-back-text {
  position: relative;
  z-index: 1;
}

.homepage-card-back-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: #ffffff;
}

.homepage-card-back-text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.homepage-card-image {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: contain;
}

.homepage-card-text {
  margin-top: auto;
  padding-top: 8px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .homepage-card-inner {
    transition-duration: 1ms;
  }
}

/* Awards */
.awards-section {
  min-height: auto;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
}

.awards-section .homepage-section-title {
  flex-shrink: 0;
  align-self: center;
}

.awards-row {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
}

.award-image {
  width: 100%;
  height: 120px;
  display: block;
  object-fit: contain;
}

.about-me-section {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-top: 48px;
  padding-bottom: 72px;
}

.about-me-image {
  display: block;
  width: 100%;
  max-height: 320px;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: 38% 42%;
  border-radius: 8px;
}

.about-me-copy {
  max-width: 480px;
}

.about-me-eyebrow {
  margin: 0 0 14px;
  color: #93a5bf;
  font-size: 10px;
  letter-spacing: 2px;
}

.about-me-copy .homepage-section-title {
  margin: 0 0 18px;
}

.about-me-copy > p:last-child {
  margin: 0;
  color: #a3afc1;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

/* Footer */
.contact-footer {
  padding: 88px 48px 28px;
  padding-left: calc(max(0px, (100% - 1440px) / 2) + clamp(64px, 8vw, 120px));
  border-top: 1px solid #ffffff18;
  background: radial-gradient(ellipse at 15% 0%, #16284366, transparent 65%), #080b10;
  font-family: 'DM Sans', sans-serif;
  scroll-margin-top: 80px;
}

.contact-eyebrow {
  color: #93a5bf;
  font-size: 10px;
  letter-spacing: 2px;
}

.contact-footer h2 {
  margin: 20px 0 28px;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.contact-footer h2 em {
  color: #b7cdfb;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid #b7cdfb55;
  color: #e6edf7;
  font-size: clamp(15px, 2.2vw, 26px);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}

.contact-email > span:first-child { overflow-wrap: anywhere; }
.contact-arrow { color: #d7edb6; transition: transform .2s; }
.contact-footer a:focus-visible { outline: 2px solid #b7cdfb; outline-offset: 6px; }

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid #ffffff12;
  color: #9caac0;
  font-size: 12px;
}

.contact-bottom a { padding: 10px 0; color: #c6d1e2; text-decoration: none; }
.contact-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-bottom a span { margin-left: 8px; }

@media (prefers-reduced-motion: reduce) {
  .contact-email, .contact-arrow { transition: none; }
}

/* Responsive */
@media (max-width: 768px) {
  nav, .homepage-section, .contact-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .homepage-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .about-me-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-me-image {
    max-height: 360px;
  }

  .homepage-card-grid {
    grid-template-columns: 1fr;
  }

  .success-case-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .success-case-banner-text {
    padding-left: 16px;
    font-size: 13px;
  }

  .homepage-card {
    min-height: 280px;
  }

  .homepage-card-image {
    height: 180px;
  }

  .awards-row {
    overflow-x: auto;
    min-width: 0;
    grid-template-columns: repeat(6, 180px);
    gap: 16px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }

  .award-image {
    height: 110px;
  }

  .case-transition {
    padding: 18px;
  }

  .case-transition-preview {
    width: 88vw;
    height: 68vh;
    border-radius: 14px;
  }

  .ar-hud-modal {
    padding: 18px;
  }

  .ar-hud-modal-viewport {
    width: 88vw;
    height: 68vh;
    border-radius: 14px;
  }

  .awards-section {
    gap: 24px;
  }

  nav {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .nav-links {
    gap: 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .case-transition,
  .case-transition-preview,
  .ar-hud-modal,
  .ar-hud-modal-viewport {
    transition: none;
  }
}

/* Media sets the card height; copy adapts without resizing the action button. */
.success-case-columns:has(.success-case-preview) {
  align-items: stretch;
}
.success-case-columns:has(.success-case-preview) .success-case-column {
  min-height: 0;
}
.success-case-columns:has(.success-case-preview) .success-case-column--image {
  contain: size;
  padding: clamp(18px, 2.2vw, 32px);
  gap: 16px;
}
.success-case-columns:has(.success-case-preview) .success-case-column--image > * {
  flex-shrink: 0;
}
.success-case-columns:has(.success-case-preview) .case-title {
  margin: auto 0 0;
  font-size: clamp(18px, 1.65vw, 24px);
}
.case-logo {
  display: block;
  width: 84px;
  max-width: 100%;
  height: auto;
  margin-top: auto;
}
.case-logo--accuengine {
  width: 120px;
}
.success-case-columns:has(.success-case-preview) .case-logo + .case-title {
  margin-top: 0;
}
.success-case-columns:has(.success-case-preview) .UX-tag-list {
  margin-top: 0;
  margin-bottom: auto;
  gap: 8px;
}
.success-case-columns:has(.success-case-preview) .case-button {
  margin-top: 0;
}
.success-case-preview {
  align-self: start;
}
.success-case-preview video,
.success-case-preview img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}
.success-case-preview .ar-hud-preview-button {
  height: auto;
}
.success-case-columns.is-media-stacked {
  grid-template-columns: 1fr;
}
.success-case-columns.is-media-stacked .success-case-column--image {
  contain: none;
}
@media (max-width: 768px) {
  .success-case-columns:has(.success-case-preview) .success-case-column--image {
    contain: none;
  }
}

/* Hero V2: a human designer, presented as a playful chat companion. */
.tina-chat-hero { padding:80px 48px 100px; background:radial-gradient(ellipse at 50% 45%,#16284366,transparent 65%),#080b10; border-top:1px solid #ffffff12; font-family:'DM Sans',sans-serif; }
.tina-chat-shell { max-width:1120px; margin:auto; }
.tina-chat-topbar { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.tina-chat-wordmark { font-size:24px; font-weight:500; letter-spacing:-1px; }
.tina-chat-wordmark>span:first-child { color:#8b9cb5; }
.tina-chat-version { display:inline-block; vertical-align:middle; margin-left:10px; padding:4px 7px; border:1px solid #ffffff25; border-radius:6px; font-size:10px; letter-spacing:0; color:#9caac0; }
.tina-chat-status { display:flex; align-items:center; gap:8px; color:#a1adc0; font-size:12px; }
.tina-chat-status i { width:6px; height:6px; border-radius:50%; background:#d5edaa; box-shadow:0 0 12px #d5edaa66; }
.tina-chat-welcome { text-align:center; padding:64px 0 36px; }
.tina-orbit { position:relative; width:108px; height:108px; margin:0 auto 34px; display:grid; place-items:center; border:1px solid #aec9ff35; border-radius:50%; background:radial-gradient(circle at 30% 20%,#344c78,#172237); box-shadow:0 12px 50px #719bf21a,inset 0 1px 0 #ffffff30; transform:rotate(-8deg); }
.tina-spark { color:#d7edb6; font-size:76px; line-height:1; }
.tina-orbit-note { position:absolute; right:-43px; bottom:-12px; padding:6px 11px; border-radius:5px; background:#d7edb6; color:#17211c; font-size:10px; font-weight:600; transform:rotate(15deg); box-shadow:0 4px 14px #0004; white-space:nowrap; }
.tina-chat-kicker { color:#93a5bf; font-size:10px; letter-spacing:2px; margin-bottom:16px; }
.tina-chat-welcome h1 { color:#f3f5fa; font-size:clamp(40px,5.5vw,72px); line-height:1.08; font-weight:400; letter-spacing:-.055em; }
.tina-chat-welcome h1 em { color:#b7cdfb; font-family:'Instrument Serif',Georgia,serif; font-weight:400; font-size:1.12em; }
.tina-chat-intro { margin:24px 0 20px; color:#a3afc1; font-size:17px; line-height:1.7; }
.tina-chat-intro strong { color:#e6edf7; font-weight:400; }
.tina-chat-skills { display:flex; justify-content:center; flex-wrap:wrap; gap:16px; color:#8c9ab0; font-size:11px; }
.tina-chat-skills span+span::before { content:'·'; margin-right:16px; color:#d7edb6; }
.tina-chat-interaction { max-width:820px; margin:auto; }
.tina-chat-prompts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.tina-chat-prompts :is(button, a) { display:flex; align-items:center; justify-content:center; padding:12px 14px; border:1px solid #a9c6fa24; border-radius:12px; background:#14203366; color:#d3ddeb; font:inherit; font-size:12px; text-align:left; cursor:pointer; transition:background .2s,border-color .2s,transform .2s; }
.tina-chat-prompts :is(button, a):hover { background:#243553; border-color:#a9c6fa66; transform:translateY(-3px); }
.tina-chat-composer { display:flex; align-items:center; gap:16px; padding:16px 20px; background:linear-gradient(130deg,#202b3e,#151c28); border:1px solid #a9c6fa40; border-radius:20px; box-shadow:0 16px 60px #0004,inset 0 1px 0 #ffffff0d; }
.tina-chat-placeholder { flex:1; min-width:0; margin:0; padding:2px; color:#9daac0; font-size:16px; line-height:1.6; }
.tina-chat-composer-bottom { display:flex; align-items:center; flex-shrink:0; margin:0; }
.tina-chat-composer-bottom>span { color:#8d9bb1; font-size:11px; }
.tina-chat-composer-bottom i { font-style:normal; color:#d7edb6; margin-right:7px; }
.tina-chat-go { flex-shrink:0; font-family:inherit; }
.tina-chat-hero :is(button,a,textarea):focus-visible { outline:2px solid #c4d8ff; outline-offset:4px; }
.tina-chat-footnote { text-align:center; margin-top:18px; color:#8895aa; font-size:11px; }
.tina-chat-response { margin:20px 0; padding:22px; background:#172336; border-left:2px solid #d7edb6; border-radius:0 12px 12px 0; }
.tina-chat-response[hidden] { display:none; }
.tina-chat-reply-name { font-size:10px; letter-spacing:1.5px; color:#d7edb6; }
.tina-chat-response p { margin:12px 0 16px; color:#c6d1e2; font-size:15px; line-height:1.7; }
.tina-chat-response a { color:#b7cdfb; font-size:13px; text-decoration:none; }
@media(max-width:700px) {
  .tina-chat-hero { padding:48px 24px 64px; }
  .tina-chat-status { font-size:10px; }
  .tina-chat-wordmark { font-size:20px; }
  .tina-chat-welcome { padding-top:48px; }
  .tina-chat-prompts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tina-chat-intro { font-size:15px; }
  .tina-chat-composer { padding:16px; }
  .tina-chat-composer-bottom>span { max-width:210px; }
  .tina-chat-desktop-break { display:none; }
}
@media(prefers-reduced-motion:reduce) { .tina-chat-prompts :is(button, a) { transition:none; } }

.tina-chat-prompts a { text-decoration:none; }
#help-companies, #success-cases { scroll-margin-top:96px; }

.tina-chat-composer-bottom .tina-chat-skills { justify-content:flex-start; gap:8px 14px; }
.tina-chat-composer-bottom .tina-chat-skills span+span::before { margin-right:14px; }

/* Chat hero is now the primary homepage introduction. */
.nav-logo.tina-chat-wordmark { font-family:"DM Sans",sans-serif; text-transform:none; letter-spacing:-1px; }
.tina-chat-topbar { justify-content:flex-end; }
.tina-chat-hero { padding-top:120px; min-height:100svh; border-top:0; }

/* Fit the complete introduction within the first screen at typical desktop sizes. */
.tina-chat-hero {
  min-height: 100svh;
  padding-top: 96px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
}
.tina-chat-shell { width:100%; }
.tina-chat-welcome { padding:12px 0 28px; }
.tina-orbit { width:88px; height:88px; margin-bottom:24px; }
.tina-spark { font-size:62px; }
.tina-chat-welcome h1 { font-size:clamp(40px,5vw,64px); }
.tina-chat-intro { margin:18px 0 0; }
@media (max-height:760px) and (min-width:701px) {
  .tina-chat-hero { padding-top:88px; padding-bottom:32px; }
  .tina-orbit { width:68px; height:68px; margin-bottom:18px; }
  .tina-spark { font-size:48px; }
  .tina-chat-kicker { margin-bottom:12px; }
  .tina-chat-welcome h1 { font-size:48px; }
  .tina-chat-welcome { padding-top:0; padding-bottom:22px; }
}
@media (max-width:700px) {
  .tina-chat-hero { padding-top:96px; padding-bottom:36px; }
  .tina-chat-welcome { padding-top:0; padding-bottom:24px; }
}

.tina-avatar { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }

/* A white brush-like career path, with expandable milestone cards. */
.experience-section {
  overflow:hidden;
  background-image:url("homepage assets/grid.png");
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
}
.experience-heading { width:100%; margin:auto; }
.experience-eyebrow { color:#999; font-size:10px; letter-spacing:2px; margin-bottom:14px; }
.experience-heading>.homepage-section-title { margin-bottom:16px; }
.experience-heading>p:last-child { color:#aaa; font-size:15px; }
.experience-journey { position:relative; width:100%; max-width:1000px; flex-shrink:0; height:1110px; margin:30px auto 180px; }
.experience-curve { position:absolute; inset:0; display:block; width:100%; height:100%; overflow:visible; pointer-events:none; }
.experience-curve { filter:drop-shadow(0 0 4px #ffffffcc) drop-shadow(0 0 12px #ffffff80); }
.experience-list { list-style:none; }
.experience-stop { position:absolute; left:var(--stop-x); top:var(--stop-y); width:0; }
.experience-dot { position:absolute; left:-6px; top:-6px; width:12px; height:12px; border-radius:50%; background:#fff; box-shadow:0 0 0 6px #ffffff0a,0 0 20px #ffffff60; }
.experience-card { position:absolute; top:-48px; width:310px; border:1px solid #ffffff25; border-radius:14px; background:linear-gradient(130deg,#202020f5,#111111f5); box-shadow:0 12px 36px #0005; transition:border-color .3s ease,box-shadow .3s ease; }
.experience-card::before { content:''; position:absolute; top:47px; width:26px; height:1px; background:#ffffff60; }
.experience-stop--right .experience-card { left:32px; }
.experience-stop--right .experience-card::before { right:100%; }
.experience-stop--left .experience-card { right:32px; }
.experience-stop--left .experience-card::before { left:100%; }
.experience-toggle { display:block; width:100%; padding:22px 42px 22px 22px; text-align:left; font:inherit; color:#f3f3f3; border:0; border-radius:14px; background:transparent; cursor:pointer; }
.experience-date { display:block; color:#aaa; font-size:10px; letter-spacing:.6px; }
.experience-placeholder { display:inline-block; margin-left:6px; font-size:7px; color:#888; }
.experience-role { display:block; margin:12px 0 6px; font-size:19px; line-height:1.3; letter-spacing:-.5px; }
.experience-company { display:block; color:#aaa; font-size:12px; }
.experience-detail { display:grid; grid-template-rows:0fr; opacity:0; visibility:hidden; transition:grid-template-rows .3s ease,opacity .3s ease,visibility .3s; }
.experience-detail>div { min-height:0; overflow:hidden; }
.experience-detail p { margin:0 22px 22px; padding-top:16px; border-top:1px solid #ffffff1a; color:#b7b7b7; font-size:12px; line-height:1.8; }
.experience-card.is-open { border-color:#ffffff65; box-shadow:0 12px 36px #0005,0 0 26px #ffffff08; z-index:2; }
.experience-card.is-open .experience-detail { grid-template-rows:1fr; opacity:1; visibility:visible; }
.experience-toggle:focus-visible { outline:2px solid #fff; outline-offset:5px; }
.experience-section.is-revealed .experience-curve { animation:experience-path-reveal 1.8s ease both; }
.experience-section.is-revealed .experience-stop { animation:experience-arrive .7s ease both; animation-delay:calc(var(--stop-order) * 150ms); }
@keyframes experience-path-reveal { from { clip-path:inset(-10% 100% -10% -5%); opacity:.2; } to { clip-path:inset(-10% -5% -10% -5%); opacity:1; } }
@keyframes experience-arrive { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:1000px) and (min-width:601px) {
  .experience-card { width:250px; }
  .experience-toggle { padding:20px 34px 20px 18px; }
  .experience-role { font-size:17px; }
}
@media(max-width:600px) {
  .experience-journey { height:1500px; margin:30px auto 180px; }
  .experience-curve { display:block; }
  .experience-stop { left:0; width:100%; }
  .experience-dot { left:calc(var(--stop-x) - 6px); }
  .experience-stop .experience-card {
    top:24px;
    left:clamp(0px, calc(var(--stop-x) - 130px), calc(100% - 260px));
    right:auto;
    width:min(260px,100%);
  }
  .experience-stop .experience-card::before { display:none; }
  .experience-toggle { padding:18px 36px 18px 18px; }
  .experience-role { font-size:17px; }
}
@media(prefers-reduced-motion:reduce) {
  .experience-section.is-revealed .experience-curve,.experience-section.is-revealed .experience-stop { animation:none; }
  .experience-card,.experience-detail { transition:none; }
}

/* Compact, screen-sized experience composition with a gentle upward return. */
.experience-section { min-height:100svh; padding-top:48px; padding-bottom:40px; justify-content:center; }
.experience-heading { margin:0 auto; }
.experience-journey { height:clamp(440px,65svh,580px); margin:16px auto 0; }
.experience-stop { left:0; width:100%; }
.experience-dot { left:calc(var(--stop-x) - 6px); }
.experience-stop .experience-card {
  width:220px;
  left:clamp(0px,calc(var(--stop-x) - 110px),calc(100% - 220px));
  right:auto;
  top:auto;
}
.experience-stop--above .experience-card { bottom:28px; }
.experience-stop:nth-child(4) .experience-card {
  top:calc(-28px - var(--experience-header-height, 130px));
  bottom:auto;
}
.experience-stop:first-child .experience-card { left:-80px; }
.experience-stop--below .experience-card { top:28px; }
.experience-stop .experience-card::before { display:none; }
.experience-toggle { padding:16px; }
.experience-role { font-size:16px; margin:9px 0 5px; }
.experience-date { font-size:9px; }
.experience-placeholder { display:block; margin:4px 0 0; }
.experience-detail p { margin:0 16px 16px; font-size:11px; line-height:1.6; }
@media(max-width:800px) {
  .experience-section { display:block; overflow-x:auto; min-height:0; }
  .experience-heading { min-width:0; }
  .experience-journey { width:1000px; max-width:none; height:540px; margin:16px 0 0; }
  .experience-curve { display:block; }
}
