/* =============================================
   PREMIUM CARD UI & AMBIENT ANIMATED MOTION
   Inspired by Reference UI:
   - Floating imagery with subtle gradient overlay
   - Tag + Logo top lockup with ample breathing room
   - Smooth elevation & inset card glow
   - Seamless Rad Lines pill banner
   ============================================= */

/* Page base in website black */
.home-page--dark {
  background: #0B0B0B;
  color: #FAFAFA;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Atmospheric animated glowing red orbs */
.ambient-glow-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform, opacity;
  pointer-events: none;
}

.ambient-orb--1 {
  top: -12vh;
  left: 15vw;
  width: 55vw;
  height: 55vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, rgba(214, 43, 31, 0.22) 0%, rgba(214, 43, 31, 0.04) 55%, transparent 75%);
  animation: orbDrift1 20s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.ambient-orb--2 {
  top: 38vh;
  right: -8vw;
  width: 52vw;
  height: 52vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(214, 43, 31, 0.17) 0%, rgba(168, 33, 23, 0.04) 50%, transparent 75%);
  animation: orbDrift2 24s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

.ambient-orb--3 {
  bottom: -15vh;
  left: -5vw;
  width: 48vw;
  height: 48vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(214, 43, 31, 0.14) 0%, transparent 70%);
  animation: orbDrift3 26s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes orbDrift1 {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate3d(8vw, 10vh, 0) scale(1.15); opacity: 1; }
  100% { transform: translate3d(-6vw, 5vh, 0) scale(0.95); opacity: 0.8; }
}

@keyframes orbDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  50% { transform: translate3d(-8vw, -8vh, 0) scale(1.16); opacity: 0.95; }
  100% { transform: translate3d(5vw, 8vh, 0) scale(0.9); opacity: 0.7; }
}

@keyframes orbDrift3 {
  0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.7; }
  50% { transform: translate3d(10vw, -8vh, 0) scale(1.12); opacity: 0.9; }
  100% { transform: translate3d(4vw, 4vh, 0) scale(1); opacity: 0.75; }
}

/* ─── OPENING HERO ─── */
.home-opening {
  padding-top: calc(var(--nav-h, 76px) + 54px);
  padding-bottom: 28px;
  position: relative;
  z-index: 1;
}

.home-opening__header {
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}

.home-opening__eyebrow {
  display: inline-block;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand-red, #D62B1F);
  margin-bottom: 16px;
}

.home-opening__title {
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.home-opening__title em {
  font-style: normal;
  color: var(--color-brand-red, #D62B1F);
}

.home-opening__lead {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: rgba(250, 250, 250, 0.65);
  line-height: 1.6;
  max-width: 640px;
  margin-inline: auto;
  font-weight: 400;
}

/* =================================
   TECHNOLOGY SHOWCASE CARDS (USER DESIGN SYSTEM)
================================= */

.tech-showcase {
  width: 100%;
  padding: 16px 16px 36px;
  box-sizing: border-box;
  background: transparent;
  font-family: inherit;
  position: relative;
  z-index: 1;
}

.tech-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  max-width: 1160px; /* Exact match to Rad Lines banner length */
  margin: 0 auto;
  perspective: 1200px;
}

.tech-card {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(220, 43, 30, 0.35);
  border-radius: 26px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.tech-card::before {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(110deg, transparent 22%, rgba(255,255,255,.18) 47%, transparent 67%);
  transform: translateX(-125%) skewX(-12deg);
  pointer-events: none;
}
.tech-card .project-tag { z-index: 4; }
.tech-card:hover::before { animation: techCardSweep .85s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes techCardSweep { to { transform: translateX(125%) skewX(-12deg); } }
.tech-card .tech-content { position: relative; z-index: 4; transition: transform .55s cubic-bezier(.16,1,.3,1); }
.tech-card:hover .tech-content { transform: translateY(-3px); }
.tech-card .tech-footer { transition: border-color .35s ease, transform .55s cubic-bezier(.16,1,.3,1); }
.tech-card:hover .tech-footer { border-color: rgba(237,56,43,.35); transform: translateY(-2px); }

/* Card 1 tilts left */
.tech-showcase__grid .tech-card:first-child {
  transform: perspective(1000px) rotate(-1.6deg) translate3d(0, 0, 0);
  transform-origin: center right;
}

/* Card 2 tilts right */
.tech-showcase__grid .tech-card:last-child {
  transform: perspective(1000px) rotate(1.6deg) translate3d(0, 0, 0);
  transform-origin: center left;
}

/* On hover, card comes back to its original straight place with elevation */
.tech-showcase__grid .tech-card:first-child:hover,
.tech-showcase__grid .tech-card:last-child:hover {
  transform: perspective(1000px) rotate(0deg) translateY(-8px) scale(1.015);
  border-color: rgba(220, 43, 30, 0.85);
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.7), 0 0 24px rgba(220, 43, 30, 0.25);
  z-index: 2;
}

/* =================================
   FEATURE IMAGE
================================= */

.tech-image {
  width: 100%;
  height: 330px;
  position: relative;
  overflow: hidden;
  background: #181818;
}

.tech-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 0.7s ease;
}

.tech-card:hover .tech-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(20, 20, 20, 0.85) 100%
  );
  pointer-events: none;
}

.project-tag {
  position: absolute;
  left: 24px;
  bottom: 20px;
  padding: 8px 16px;
  color: #fff;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =================================
   CARD CONTENT
================================= */

.tech-content {
  padding: 34px 38px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* CATEGORY LABEL */
.tech-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #ed382b;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
}

.category-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ed382b;
  box-shadow: 0 0 12px #ed382b;
}

/* =================================
   LOGO LEFT + HEADING RIGHT
================================= */

.tech-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.tech-heading h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -1px;
}

/* LOGO */
.tech-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  padding: 5px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #202020;
  border: 1px solid rgba(220, 43, 30, 0.7);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.tech-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.tech-card:hover .tech-logo {
  border-color: #ed382b;
  transform: scale(1.05);
}

/* =================================
   DESCRIPTION
================================= */

.tech-description {
  margin: 0;
  color: #a8a8a8;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 15.5px;
  line-height: 1.72;
  font-weight: 400;
  flex: 1;
}

/* =================================
   FOOTER
================================= */

.tech-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-number {
  color: #fff;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 20px;
  font-weight: 700;
}

.info-label {
  color: #777;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* =================================
   CTA BUTTON
================================= */

.tech-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  color: #fff;
  background: #dc2b1e;
  border: 1px solid #dc2b1e;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 14px;
  font-weight: 650;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tech-button:hover {
  color: #ed382b;
  background: transparent;
  box-shadow: 0 0 25px rgba(220, 43, 30, 0.25);
}

.arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.tech-button:hover .arrow {
  transform: translate(3px, -3px);
}

/* ─── RAD LINES THIN PILL BANNER ─── */
.home-radlines-thin-section {
  padding-block: 16px 64px;
  position: relative;
  z-index: 1;
}

.radlines-thin-pill {
  max-width: 1160px;
  margin-inline: auto;
  background: #141414;
  color: #F7F5F0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
  position: relative;
  min-height: 250px;
}

.radlines-thin-copy {
  padding: clamp(28px, 3.5vw, 42px) clamp(28px, 4vw, 48px);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.radlines-brand-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.radlines-brand-lockup .tech-logo {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  padding: 5px;
  border: 1px solid rgba(237,56,43,.95);
  border-radius: 18px;
  background: #080808;
  box-shadow: 0 0 0 4px rgba(237,56,43,.08), 0 12px 28px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease, border-color .35s ease;
}
.radlines-brand-lockup .tech-logo img { border-radius: 12px; }
.radlines-brand-lockup .tech-category { margin: 0; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .13em; }
.radlines-brand-lockup .category-dot { display: none; }
.radlines-thin-pill:hover .radlines-brand-lockup .tech-logo { transform: translateY(-4px) rotate(-2deg); border-color: #ff4b3c; box-shadow: 0 0 0 5px rgba(237,56,43,.12), 0 18px 34px rgba(0,0,0,.5), 0 0 24px rgba(237,56,43,.18); }

.radlines-thin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.radlines-thin-kicker {
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-red, #D62B1F);
}

.radlines-thin-title {
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: clamp(1.8rem, 2.9vw, 2.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin: 0 0 10px 0;
}

.radlines-thin-title em {
  font-style: normal;
  color: var(--color-brand-red, #D62B1F);
}

.radlines-thin-desc {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(247, 245, 240, 0.65);
  max-width: 46ch;
  margin-bottom: 22px;
}

.radlines-thin-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.radlines-thin-btn {
  background: var(--color-brand-red, #D62B1F);
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: 9999px;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(214, 43, 31, 0.45);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.radlines-thin-btn:hover {
  background: #EE3427;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(214, 43, 31, 0.6);
}

.radlines-thin-subtext {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  color: rgba(247, 245, 240, 0.45);
}

.radlines-thin-stage {
  position: relative;
  isolation: isolate;
  background: radial-gradient(circle at 72% 22%, #2d8790 0%, rgba(31,104,112,.88) 24%, transparent 54%), radial-gradient(circle at 18% 82%, #315f52 0%, rgba(24,53,49,.9) 28%, transparent 58%), linear-gradient(135deg, #071b2c 0%, #0d3345 43%, #1c4a4d 70%, #8e2924 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  overflow: hidden;
  text-decoration: none;
  min-height: 220px;
}
.radlines-thin-stage::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(ellipse at 50% 52%, transparent 22%, rgba(3,15,25,.3) 78%), linear-gradient(135deg, rgba(2,14,25,.38), transparent 46%, rgba(142,41,36,.28));
  pointer-events: none;
}

.radlines-thin-stage__label {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 4;
  color: #FFFFFF;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radlines-thin-stage__book {
  position: relative;
  z-index: 2;
  width: 48%;
  max-width: 220px;
  aspect-ratio: 1;
  object-fit: cover;
  transform: rotate(-15deg) translate3d(0, 0, 0);
  box-shadow: 14px 22px 34px rgba(0, 0, 0, 0.38);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  border-radius: 4px;
}
.radlines-thin-badge img { width: 48px; height: 48px; display: block; border-radius: 50%; object-fit: cover; }

.radlines-thin-stage:hover .radlines-thin-stage__book {
  transform: rotate(-12deg) scale(1.06) translate3d(0, -4px, 16px);
  box-shadow: 20px 30px 44px rgba(0, 0, 0, 0.48);
}

.radlines-thin-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  pointer-events: none;
  width: 90%;
  aspect-ratio: 1;
  transform: rotate(25deg) scaleY(0.38);
  animation: radHomeOrbit 11s linear infinite;
}

.radlines-thin-badge {
  position: absolute;
  right: 6%;
  bottom: 8%;
  z-index: 3;
  width: 84px;
  height: 84px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #FFFFFF;
  color: #121212;
  text-align: center;
  font: 800 1.25rem/0.82 var(--font-display, 'Manrope', sans-serif);
  transform: rotate(10deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  animation: radHomeBadge 4s ease-in-out infinite;
}

.radlines-thin-hint {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 4;
  color: #FFFFFF;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 900px) {
  .ambient-orb {
    animation: none !important;
    filter: blur(50px) !important;
  }
}

@media (max-width: 1040px) {
  .tech-showcase__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 680px;
  }
  .tech-showcase__grid .tech-card:first-child,
  .tech-showcase__grid .tech-card:last-child {
    transform: none !important;
  }
  .tech-showcase__grid .tech-card:first-child:hover,
  .tech-showcase__grid .tech-card:last-child:hover {
    transform: translateY(-6px) !important;
  }
  .tech-image {
    height: 320px;
  }
  .tech-content {
    padding: 32px 28px;
  }
  .tech-heading h2 {
    font-size: 30px;
  }
  .tech-logo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
  .radlines-thin-pill {
    grid-template-columns: 1fr;
    border-radius: 24px;
    max-width: 680px;
  }
  .radlines-thin-stage {
    min-height: 280px;
  }
  .radlines-thin-stage__book {
    width: 48%;
  }
}

@media (max-width: 680px) {
  .home-opening {
    padding-top: calc(var(--nav-h, 76px) + 24px);
    padding-bottom: 16px;
  }
  .tech-showcase {
    padding: 12px 14px 28px;
  }
  .tech-showcase__grid {
    gap: 24px;
    max-width: 100%;
  }
  .tech-card {
    border-radius: 22px;
  }
  .tech-image {
    height: 230px;
  }
  .project-tag {
    left: 16px;
    bottom: 14px;
    font-size: 9px;
    padding: 6px 12px;
  }
  .tech-content {
    padding: 22px 18px 24px;
  }
  .tech-category {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
  }
  .tech-heading {
    gap: 12px;
    margin-bottom: 12px;
  }
  .tech-logo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    padding: 4px;
    border-radius: 12px;
  }
  .tech-heading h2 {
    font-size: clamp(20px, 5.2vw, 25px);
    letter-spacing: -0.6px;
  }
  .tech-description {
    font-size: 14px;
    line-height: 1.68;
  }
  .tech-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
  }
  .tech-button {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    font-size: 14px;
  }
  .tech-card::before { display: none; }
  .tech-card:hover .tech-content, .tech-card:hover .tech-footer { transform: none; }
  .radlines-thin-pill {
    max-width: 100%;
  }
  .radlines-thin-copy {
    padding: 24px 18px;
  }
  .radlines-thin-stage {
    min-height: 240px;
  }
  .radlines-thin-stage__book {
    width: 52%;
  }
  .radlines-thin-badge img { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .tech-card::before { animation: none !important; display: none; }
  .tech-card, .tech-card .tech-content, .tech-card .tech-footer,
  .tech-card .tech-image img, .radlines-thin-stage__book { transition: none !important; transform: none !important; }
}

/* ─── RAD LINES PILL INTERACTION ─── */
.radlines-thin-pill {
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 24px 64px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .65s cubic-bezier(.16,1,.3,1), border-color .4s ease, box-shadow .65s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.radlines-thin-pill::after {
  content: '';
  position: absolute;
  z-index: 6;
  inset: 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .45s ease, transform .65s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.radlines-thin-pill:hover,
.radlines-thin-pill.revealed:hover {
  transform: translateY(-9px) scale(1.008);
  border-color: rgba(237,56,43,.52);
  box-shadow: 0 36px 88px rgba(0,0,0,.68), 0 0 36px rgba(237,56,43,.1), inset 0 1px 0 rgba(255,255,255,.1);
}
.radlines-thin-pill:hover::after { opacity: 1; transform: scale(1); }
.radlines-thin-copy { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.radlines-thin-pill:hover .radlines-thin-copy { transform: translateX(5px); }
.radlines-brand-lockup .tech-logo { transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .35s ease; }
.radlines-thin-pill:hover .radlines-brand-lockup .tech-logo { transform: translateY(-5px) rotate(-3deg) scale(1.04); }
.radlines-thin-stage { transition: filter .5s ease, background-position 1.2s ease; background-size: 125% 125%; }
.radlines-thin-stage::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: -30%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.16) 49%, transparent 60%);
  transform: translateX(-70%) rotate(8deg);
  transition: transform .9s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.radlines-thin-pill:hover .radlines-thin-stage { filter: saturate(1.12) brightness(1.05); background-position: 100% 0; }
.radlines-thin-pill:hover .radlines-thin-stage::after { transform: translateX(70%) rotate(8deg); }
.radlines-thin-pill:hover .radlines-thin-orbit { animation-duration: 6s; border-color: rgba(255,255,255,.46); }
.radlines-thin-pill:hover .radlines-thin-stage__book { transform: rotate(-10deg) scale(1.08) translate3d(0, -7px, 24px); box-shadow: 24px 34px 48px rgba(0,0,0,.56); }
.radlines-thin-pill:hover .radlines-thin-badge { transform: rotate(4deg) translateY(-7px) scale(1.06); }
.radlines-thin-badge { transition: transform .55s cubic-bezier(.16,1,.3,1), box-shadow .45s ease; }
.radlines-thin-pill:hover .radlines-thin-badge { box-shadow: 0 18px 30px rgba(0,0,0,.38), 0 0 20px rgba(255,255,255,.16); }
.radlines-thin-btn { transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s ease, box-shadow .35s ease; }
.radlines-thin-btn:hover { transform: translateY(-4px) scale(1.025); box-shadow: 0 14px 30px rgba(214,43,31,.58); }
.radlines-thin-btn span { display: inline-block; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.radlines-thin-btn:hover span { transform: translate(3px,-3px); }
@media (max-width: 680px) {
  .radlines-thin-pill:hover,
  .radlines-thin-pill.revealed:hover { transform: translateY(-5px); }
  .radlines-thin-pill:hover .radlines-thin-copy { transform: none; }
  .radlines-thin-stage::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .radlines-thin-pill,
  .radlines-thin-pill::after,
  .radlines-thin-copy,
  .radlines-thin-stage,
  .radlines-thin-stage::after,
  .radlines-thin-stage__book,
  .radlines-thin-badge,
  .radlines-thin-btn,
  .radlines-thin-btn span,
  .radlines-brand-lockup .tech-logo { transition: none !important; transform: none !important; animation: none !important; }
}

/* ─── HOMEPAGE CARD ART-DIRECTION PASS ─── */
.tech-showcase__grid { gap: clamp(26px, 3.4vw, 46px); perspective: 1600px; }
.tech-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background: linear-gradient(145deg, #1b1b1b 0%, #111 48%, #0d0d0d 100%);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .7s cubic-bezier(.16,1,.3,1), border-color .45s ease, box-shadow .7s cubic-bezier(.16,1,.3,1);
}
.tech-showcase__grid .tech-card:first-child { transform: perspective(1400px) rotateY(2deg) rotateZ(-1.2deg) translateY(7px); }
.tech-showcase__grid .tech-card:last-child { transform: perspective(1400px) rotateY(-2deg) rotateZ(1.2deg) translateY(-7px); }
.tech-showcase__grid .tech-card:first-child:hover,
.tech-showcase__grid .tech-card:last-child:hover {
  transform: perspective(1400px) rotateY(0deg) rotateZ(0deg) translateY(-16px) scale(1.018);
  border-color: rgba(237,56,43,.72);
  box-shadow: 0 42px 110px rgba(0,0,0,.75), 0 0 48px rgba(220,43,30,.18), inset 0 1px 0 rgba(255,255,255,.12);
}
.tech-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 5;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  opacity: 0;
  transform: scale(.97);
  transition: opacity .5s ease, transform .7s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.tech-card:hover::after { opacity: 1; transform: scale(1); }
.tech-image { height: 360px; isolation: isolate; }
.tech-image::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(255,255,255,.14) 46%, transparent 67%);
  transform: translateX(-130%);
  pointer-events: none;
}
.tech-card:hover .tech-image::before { animation: techImageSweep 1s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes techImageSweep { to { transform: translateX(130%); } }
.tech-image img { filter: saturate(.9) contrast(1.08); transition: transform 1s cubic-bezier(.16,1,.3,1), filter .7s ease; }
.tech-card:hover .tech-image img { transform: scale(1.09); filter: saturate(1.12) contrast(1.12); }
.image-overlay { background: linear-gradient(to bottom, rgba(0,0,0,.02) 15%, rgba(8,8,8,.2) 45%, rgba(8,8,8,.96) 100%); }
.project-tag { z-index: 4; left: 28px; bottom: 24px; background: rgba(8,8,8,.64); border-color: rgba(255,255,255,.42); box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .5s cubic-bezier(.16,1,.3,1), background .35s ease; }
.tech-card:hover .project-tag { transform: translateY(-5px); background: rgba(214,43,31,.86); }
.tech-content { padding: 38px 42px 40px; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 45%); }
.tech-category { margin-bottom: 24px; font-size: 11px; letter-spacing: .16em; }
.category-dot { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(237,56,43,.1), 0 0 16px #ed382b; }
.tech-heading { min-height: 62px; gap: 18px; margin-bottom: 18px; }
.tech-heading h2 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.02; letter-spacing: -.055em; }
.tech-logo { width: 62px; height: 62px; flex-basis: 62px; border-radius: 18px; background: #090909; border-color: rgba(237,56,43,.8); box-shadow: 0 10px 28px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08); }
.tech-logo img { border-radius: 12px; }
.tech-description { max-width: 38ch; color: rgba(255,255,255,.58); font-size: 15px; line-height: 1.7; }
.tech-footer { margin-top: 36px; padding-top: 22px; border-top-color: rgba(255,255,255,.12); }
.project-info { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.tech-card:hover .project-info { transform: translateX(4px); }
.info-number { color: #fff; font-size: 24px; }
.info-label { color: rgba(255,255,255,.4); letter-spacing: .16em; }
.tech-button { padding: 15px 24px; border-radius: 999px; box-shadow: 0 10px 24px rgba(220,43,30,.2); transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s ease, box-shadow .3s ease; }
.tech-button:hover { transform: translateY(-3px); color: #fff; background: #ed382b; box-shadow: 0 15px 32px rgba(220,43,30,.38); }
.tech-button .arrow { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.tech-button:hover .arrow { transform: translate(4px,-4px); }

@media (max-width: 900px) {
  .ambient-orb {
    animation: none !important;
    filter: blur(50px) !important;
  }
}

@media (max-width: 1040px) {
  .tech-showcase__grid {
    perspective: none !important;
  }
  .tech-card {
    transform: none !important;
    transform-style: flat !important;
    will-change: auto !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
  }
  .tech-showcase__grid .tech-card:first-child,
  .tech-showcase__grid .tech-card:last-child {
    transform: none !important;
  }
  .tech-showcase__grid .tech-card:first-child:hover,
  .tech-showcase__grid .tech-card:last-child:hover {
    transform: none !important;
  }
}

@media (hover: none) {
  .tech-card:hover {
    transform: none !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45) !important;
  }
  .tech-card:hover::before,
  .tech-card:hover .tech-image::before {
    animation: none !important;
    display: none !important;
  }
  .tech-card:hover .tech-image img {
    transform: none !important;
    filter: none !important;
  }
  .tech-card:hover .tech-content,
  .tech-card:hover .tech-footer,
  .tech-card:hover .tech-logo,
  .tech-card:hover .project-tag {
    transform: none !important;
  }
}
@media (max-width: 680px) {
  .tech-image { height: 250px; }
  .tech-content { padding: 26px 20px 28px; }
  .tech-heading { min-height: 48px; gap: 12px; }
  .tech-heading h2 { font-size: clamp(24px, 7vw, 32px); }
  .tech-logo { width: 50px; height: 50px; flex-basis: 50px; border-radius: 14px; }
  .tech-logo img { border-radius: 9px; }
  .tech-card:hover .tech-image img { transform: scale(1.04); }
  .project-tag { left: 18px; bottom: 17px; }
  .tech-description { font-size: 14px; }
  .radlines-brand-lockup { gap: 12px; }
  .radlines-brand-lockup .tech-logo { width: 56px; height: 56px; flex-basis: 56px; }
  .radlines-brand-lockup .tech-category { font-size: 10px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-card,
  .tech-card::before,
  .tech-card::after,
  .tech-card .tech-content,
  .tech-card .tech-footer,
  .tech-card .tech-image img,
  .tech-card .project-tag,
  .tech-button,
  .tech-button .arrow { animation: none !important; transition: none !important; transform: none !important; }
}
