.punch-hero {
  height: 140vh;
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, #0f1a2e 0%, #0a0f1a 50%, #050810 100%);
  color: #fff;
}

.punch-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

.punch-sticky::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.12), transparent 60%);
  pointer-events: none;
}

.punch-wrap {
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}

.clock-machine {
  width: min(92vw, 480px);
  border-radius: 32px;
  padding: 0;
  background: linear-gradient(175deg, #3a3a3a 0%, #1e1e1e 40%, #141414 100%);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -2px 10px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.clock-machine::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.clock-header {
  text-align: center;
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.clock-brand {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.clock-title {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.clock-screen {
  margin: 20px 24px;
  background: #060e0c;
  border-radius: 16px;
  padding: 28px 20px;
  position: relative;
  border: 1px solid rgba(13, 148, 136, 0.15);
  box-shadow:
    inset 0 2px 12px rgba(0,0,0,0.6),
    0 0 30px rgba(13, 148, 136, 0.05);
}

.clock-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13,148,136,0.03), transparent 50%);
  pointer-events: none;
}

.clock-date-display {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(13, 148, 136, 0.7);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 500;
}

.clock-time-display {
  text-align: center;
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
}

.clock-time-digits {
  background: linear-gradient(180deg, #14b8a6, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(13, 148, 136, 0.3));
}

.clock-time-seconds {
  font-size: 0.45em;
  vertical-align: super;
  opacity: 0.7;
}

.clock-time-ampm {
  font-size: 0.3em;
  vertical-align: super;
  margin-left: 4px;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

.clock-status-line {
  text-align: center;
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.clock-status-line.clocked-in {
  color: #10b981;
}

.clock-status-line.clocked-out {
  color: #f59e0b;
}

.clock-actions {
  display: flex;
  gap: 12px;
  padding: 0 24px 20px;
}

.clock-btn {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.clock-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.clock-btn-in {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.clock-btn-in:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(13, 148, 136, 0.4);
}

.clock-btn-in:active {
  transform: translateY(0);
}

.clock-btn-out {
  background: linear-gradient(135deg, #374151, #1f2937);
  color: #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.clock-btn-out:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

.clock-btn-out:active {
  transform: translateY(0);
}

.clock-btn:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 3px;
}

.clock-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.clock-btn .btn-loading {
  display: none;
}

.clock-btn.loading .btn-text {
  visibility: hidden;
}

.clock-btn.loading .btn-loading {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.clock-card-slot {
  margin: 0 24px 20px;
  height: 8px;
  background: #0a0a0a;
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  overflow: hidden;
}

.clock-card-slot::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255,255,255,0.03);
  border-radius: 1px;
}

.clock-card-slot.punching::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13,148,136,0.4), transparent);
  animation: card-slide 0.6s ease-out forwards;
}

@keyframes card-slide {
  to { left: 100%; }
}

.clock-footer {
  text-align: center;
  padding: 0 24px 16px;
}

.clock-footer-text {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-hint {
  margin-top: 40px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  animation: hint-bounce 2s ease-in-out infinite;
}

.scroll-hint-arrow {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  opacity: 0.5;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.clock-success-flash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  animation: success-flash 0.8s ease-out;
}

@keyframes success-flash {
  0% { opacity: 0.6; }
  100% { opacity: 0; }
}

.clock-analog {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid rgba(13, 148, 136, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.clock-analog-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #14b8a6;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 2px;
}

.clock-hand-hour {
  width: 3px;
  height: 22px;
  background: rgba(255,255,255,0.6);
  margin-left: -1.5px;
}

.clock-hand-minute {
  width: 2px;
  height: 28px;
  background: rgba(255,255,255,0.5);
  margin-left: -1px;
}

.clock-hand-second {
  width: 1px;
  height: 32px;
  background: #14b8a6;
  margin-left: -0.5px;
}

.clock-tick {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 1px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  transform-origin: 0 36px;
}

.clock-tick.major {
  height: 8px;
  width: 2px;
  background: rgba(255,255,255,0.3);
  margin-left: -0.5px;
}

@media (prefers-reduced-motion: reduce) {
  .punch-wrap { transition: none !important; }
  .scroll-hint { animation: none; }
  .clock-hand-second { transition: none; }
}

@media (max-width: 480px) {
  .clock-machine { border-radius: 24px; }
  .clock-screen { margin: 16px 16px; padding: 20px 16px; }
  .clock-actions { padding: 0 16px 16px; }
  .clock-card-slot { margin: 0 16px 16px; }
  .clock-header { padding: 16px 16px 10px; }
}
