/* Cyvelix Studio — styles.css */

/* --- Self-hosted Inter font (OFL) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #090c12;
  --bg-surface: #0e131d;
  --surface: #121824;
  --surface-hover: #172030;
  --surface-active: #1d273a;
  --border: #1d2636;
  --border-hover: #2e3d56;
  --border-accent: rgba(34, 211, 238, 0.4);
  --text: #e8ecf3;
  --text-muted: #8e9bb2;
  --text-dim: #5c687e;
  --accent: #22d3ee;
  --accent-hover: #38bdf8;
  --accent-glow: rgba(34, 211, 238, 0.2);
  --accent-soft: rgba(34, 211, 238, 0.08);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.25);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --wrap-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.08) 0%, transparent 55%),
    linear-gradient(rgba(31, 41, 58, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 58, 0.22) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

/* Ambient Cursor Glow (Fine pointer desktop only) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.09) 0%, rgba(34, 211, 238, 0.02) 40%, transparent 70%);
  transform: translate3d(-1000px, -1000px, 0) translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

.cursor-glow.active {
  opacity: 1;
}

/* Layout container */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header & Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(9, 12, 18, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background-color: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.header-cta:hover {
  background-color: var(--accent);
  color: #090c12;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Hero Section */
section.hero {
  padding-top: 72px;
  padding-bottom: 84px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 22px;
  animation: hero-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.35rem, 4.1vw, 3.45rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 20px;
  animation: hero-fade-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-subline {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 34px;
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: hero-fade-up 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background-color: var(--accent);
  color: #090c12;
  font-size: 0.9688rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all 0.15s ease;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.32);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  background-color: var(--surface);
  color: var(--text);
  font-size: 0.9688rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-hover);
  color: #ffffff;
}

/* Hero Mockup: Pure CSS/SVG Live Assembly */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  perspective: 1200px;
}

.mockup-glow {
  position: absolute;
  inset: -16px;
  background: radial-gradient(circle at 60% 40%, rgba(34, 211, 238, 0.22) 0%, rgba(34, 211, 238, 0.05) 50%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: glow-breathe 6s infinite ease-in-out;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.03); }
}

.mockup-window {
  position: relative;
  z-index: 1;
  background-color: #0f141f;
  border: 1px solid #222d42;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background-color: #141b2b;
  border-bottom: 1px solid #1f293d;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; opacity: 0.85; }
.dot-yellow { background-color: #f59e0b; opacity: 0.85; }
.dot-green { background-color: #10b981; opacity: 0.85; }

.mockup-address {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: #0b0f17;
  border: 1px solid #1c2638;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  flex: 1;
  max-width: 240px;
}

.mockup-address .lock-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.mockup-bar-space {
  width: 32px;
}

.mockup-canvas {
  position: relative;
  padding: 20px;
  min-height: 330px;
  background: linear-gradient(180deg, #0e131d 0%, #0b0f16 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Simulated Nav (Present from frame 0) */
.sim-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  animation: anim-sim-nav 9s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-logo {
  width: 48px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 3px;
  opacity: 0.9;
}

.sim-links {
  display: flex;
  gap: 8px;
}

.sim-links span {
  width: 28px;
  height: 8px;
  background-color: #242f44;
  border-radius: 2px;
}

/* Simulated Hero (Present from frame 0 / 0.4s) */
.sim-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: anim-sim-hero 9s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-badge {
  width: 60px;
  height: 8px;
  background-color: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 4px;
}

.sim-title {
  width: 78%;
  height: 16px;
  background: linear-gradient(90deg, #e8ecf3 0%, #8e9bb2 100%);
  border-radius: 4px;
}

.sim-subtitle {
  width: 55%;
  height: 9px;
  background-color: #26334a;
  border-radius: 3px;
}

/* Simulated Products */
.sim-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.sim-card {
  background-color: #141b2a;
  border: 1px solid #202b3d;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.sim-card.card-1 {
  animation: anim-card-1 9s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-card.card-2 {
  animation: anim-card-2 9s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-card.card-3 {
  animation: anim-card-3 9s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* Product Card Thumbnails with soft lively gradients */
.sim-card-thumb {
  height: 52px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sim-card-thumb.thumb-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.32) 0%, rgba(14, 165, 233, 0.12) 100%);
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.12);
}

.sim-card-thumb.thumb-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32) 0%, rgba(234, 88, 12, 0.12) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.12);
}

.sim-card-thumb.thumb-violet {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.32) 0%, rgba(124, 58, 237, 0.12) 100%);
  border: 1px solid rgba(168, 85, 247, 0.28);
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.12);
}

.sim-card-line {
  height: 6px;
  background-color: #2a374e;
  border-radius: 2px;
  width: 80%;
}

.sim-card-line.short {
  width: 48%;
  height: 5px;
  background-color: #1d283b;
}

.sim-card-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2px;
}

/* Simulated Checkout Row & Button (starts hidden until cards assemble) */
.sim-checkout-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.sim-checkout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--accent);
  color: #090c12;
  font-size: 0.775rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: default;
  box-shadow: 0 2px 10px var(--accent-glow);
  opacity: 0;
  transform: translateY(16px);
  animation: anim-checkout 9s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* Simulated Animated Cursor */
.sim-cursor {
  position: absolute;
  right: 68px;
  bottom: 24px;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
  opacity: 0;
  transform: translate(100px, 60px);
  animation: anim-cursor 9s infinite ease-in-out;
}

/* Simulated Toast Notification */
.sim-toast {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background-color: #0d1e18;
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px var(--success-glow);
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
  animation: anim-toast 9s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-toast-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.sim-toast-sub {
  font-size: 0.65rem;
  color: #6ee7b7;
}

/* --- Hero Loop Synchronized Keyframes (9s total) ---
 * 0.0s (0%): Nav & Hero already visible from start
 * 0.8s (9%): Card 1 drops in
 * 1.6s (18%): Card 2 drops in
 * 2.4s (27%): Card 3 drops in
 * 3.4s (38%): Checkout button slides in
 * 4.4s (49%): Cursor glides towards Checkout
 * 5.4s (60%): Cursor clicks Checkout (button pulses)
 * 5.8s (64%): Toast springs in with emerald glow
 * 6.0s - 8.2s (66% - 91%): Hold state with completed store & toast visible
 * 8.6s - 9.0s (96% - 100%): Smooth fade/reset
 */

@keyframes anim-sim-nav {
  0%, 93% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes anim-sim-hero {
  0%, 93% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(6px); }
}

@keyframes anim-card-1 {
  0%, 6% { opacity: 0; transform: translateY(12px) scale(0.95); }
  11%, 93% { opacity: 1; transform: translateY(0) scale(1); }
  97%, 100% { opacity: 0; transform: translateY(12px) scale(0.95); }
}

@keyframes anim-card-2 {
  0%, 15% { opacity: 0; transform: translateY(12px) scale(0.95); }
  20%, 93% { opacity: 1; transform: translateY(0) scale(1); }
  97%, 100% { opacity: 0; transform: translateY(12px) scale(0.95); }
}

@keyframes anim-card-3 {
  0%, 24% { opacity: 0; transform: translateY(12px) scale(0.95); }
  29%, 93% { opacity: 1; transform: translateY(0) scale(1); }
  97%, 100% { opacity: 0; transform: translateY(12px) scale(0.95); }
}

@keyframes anim-checkout {
  0%, 34% { opacity: 0; transform: translateY(16px); }
  40%, 57% { opacity: 1; transform: translateY(0) scale(1); background-color: var(--accent); }
  59%, 63% { opacity: 1; transform: translateY(0) scale(0.92); background-color: var(--accent-hover); box-shadow: 0 0 16px var(--accent); }
  65%, 93% { opacity: 1; transform: translateY(0) scale(1); background-color: var(--accent); }
  97%, 100% { opacity: 0; transform: translateY(16px); }
}

@keyframes anim-cursor {
  0%, 42% { opacity: 0; transform: translate(90px, 60px) scale(1); }
  48% { opacity: 1; transform: translate(60px, 40px) scale(1); }
  56%, 58% { opacity: 1; transform: translate(0, 0) scale(1); }
  59%, 63% { opacity: 1; transform: translate(0, 0) scale(0.85); }
  66% { opacity: 1; transform: translate(20px, 18px) scale(1); }
  72%, 93% { opacity: 0; transform: translate(35px, 25px) scale(1); }
  100% { opacity: 0; }
}

@keyframes anim-toast {
  0%, 61% { opacity: 0; transform: translateY(-12px) scale(0.92); }
  65%, 92% { opacity: 1; transform: translateY(0) scale(1); }
  97%, 100% { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* Tools Strip Section */
.tools-strip-section {
  padding-block: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: rgba(14, 19, 29, 0.6);
}

.tools-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tools-strip-label {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
}

.tools-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.tool-chip:hover {
  border-color: var(--border-accent);
  color: var(--text);
  background-color: var(--surface-hover);
}

.tool-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* Sections Common */
section {
  padding-block: 84px;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 48px;
  max-width: 640px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Services Grid & 3D Tilt */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.25s ease, border-color 0.2s ease, background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(34, 211, 238, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.service-card:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-accent);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-title {
  font-size: 1.1875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Selected Work Showcase */
.work-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.work-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.22fr;
  align-items: center;
  gap: 44px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(34, 211, 238, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.work-card:hover {
  border-color: var(--border-accent);
  background-color: var(--surface-hover);
}

.work-card:hover::after {
  opacity: 1;
}

.work-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
}

.work-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background-color: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.work-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.work-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.work-meta-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.work-meta-chip {
  font-size: 0.775rem;
  color: var(--text-dim);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.work-link svg {
  transition: transform 0.15s ease;
}

.work-card:hover .work-link {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.3);
  background-color: var(--accent-soft);
}

.work-card:hover .work-link svg {
  transform: translate(2px, -2px);
}

/* Device Frames Showcase */
.work-visual {
  position: relative;
  width: 100%;
}

.device-showcase {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}

/* Laptop Frame */
.device-laptop {
  position: relative;
  background: #19202c;
  border: 2px solid #283346;
  border-radius: 12px 12px 0 0;
  padding: 10px 10px 4px 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.laptop-camera {
  width: 5px;
  height: 5px;
  background-color: #3f4e66;
  border-radius: 50%;
  margin: 0 auto 6px auto;
}

.laptop-screen {
  overflow: hidden;
  border-radius: 4px;
  background-color: #000000;
  aspect-ratio: 16 / 10;
}

.laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.laptop-base {
  height: 10px;
  background: linear-gradient(180deg, #2b3648 0%, #171d27 100%);
  border-radius: 0 0 12px 12px;
  margin: 0 -14px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.laptop-notch {
  width: 64px;
  height: 4px;
  background-color: #121720;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}

/* Overlapping Phone Frame */
.device-phone {
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 31%;
  min-width: 125px;
  max-width: 170px;
  background: #141a24;
  border: 2.5px solid #2b3648;
  border-radius: 22px;
  padding: 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(34, 211, 238, 0.18);
  z-index: 2;
  transition: transform 0.25s ease;
}

.work-card:hover .device-phone {
  transform: translateY(-4px);
}

.phone-island {
  width: 32px;
  height: 6px;
  background-color: #080b10;
  border-radius: 9999px;
  margin: 2px auto 5px auto;
}

.phone-screen {
  overflow: hidden;
  border-radius: 16px;
  background-color: #000000;
  aspect-ratio: 390 / 844;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Process / How We Work */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.process-step {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.process-step:hover {
  border-color: var(--border-hover);
  background-color: var(--surface-hover);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.1875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Contact Section & Project Picker */
section.contact-section {
  padding-block: 96px;
}

.contact-box {
  background: linear-gradient(135deg, #111724 0%, #161e2e 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.contact-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

.contact-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.contact-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* "What do you need?" Interactive Picker */
.project-picker-wrap {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 36px;
  background-color: rgba(9, 12, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.picker-legend {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}

.picker-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.picker-chip {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.picker-chip:hover {
  color: #ffffff;
  border-color: var(--border-hover);
  background-color: var(--surface-hover);
}

.picker-chip.selected {
  background-color: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  font-weight: 600;
}

.contact-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background-color: var(--accent);
  color: #090c12;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: all 0.15s ease;
  word-break: break-all;
  max-width: 100%;
}

.contact-mail-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
}

.picker-hint {
  font-size: 0.8438rem;
  color: var(--text-dim);
}

.contact-note {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-email a:hover {
  color: var(--accent);
}

/* 404 Page */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 60px;
}

.code-404 {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.05em;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Rules */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-subline {
    max-width: 560px;
  }
  .work-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 36px;
  }
  .work-info {
    align-items: flex-start;
  }
  .device-showcase {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }
  .nav-links {
    display: none;
  }
  section.hero {
    padding-top: 48px;
    padding-bottom: 60px;
  }
  section {
    padding-block: 60px;
  }
  .tools-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .contact-box {
    padding: 40px 18px;
  }
  .contact-mail-btn {
    font-size: 0.95rem;
    padding: 13px 22px;
  }
  .picker-chip {
    font-size: 0.8125rem;
    padding: 7px 14px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-inline: 16px;
  }
  .device-phone {
    right: -6px;
    bottom: -12px;
    width: 33%;
    min-width: 110px;
  }
  .laptop-base {
    margin: 0 -8px;
  }
  .mockup-canvas {
    padding: 14px;
    min-height: 290px;
  }
  .sim-products {
    gap: 6px;
  }
  .sim-card {
    padding: 8px 6px;
  }
  .sim-card-thumb {
    height: 42px;
  }
}

/* Reduced Motion strictly adheres to accessibility requirements */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-glow {
    display: none !important;
  }
  .btn-primary:hover,
  .service-card:hover,
  .work-card:hover,
  .contact-mail-btn:hover,
  .device-phone {
    transform: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-pill,
  .hero-title,
  .hero-subline,
  .hero-actions,
  .mockup-glow,
  .hero-pill-dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  /* Show the completed store state under reduced motion, toast included */
  .sim-nav,
  .sim-hero,
  .sim-card,
  .sim-checkout-btn,
  .sim-toast {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .sim-cursor {
    display: none !important;
  }
}
