/* =============================================
   DESIGN SYSTEM — labofrudy
   ============================================= */

@font-face { font-family:'Sligoil'; src:url('../fonts/Sligoil-MicroBold.woff2') format('woff2'); font-weight:700; }
@font-face { font-family:'Sligoil'; src:url('../fonts/Sligoil-Micro.woff2')     format('woff2'); font-weight:400; }
@font-face { font-family:'Karrik';  src:url('../fonts/Karrik-Regular.woff2')    format('woff2'); font-weight:400; font-style:normal; }
@font-face { font-family:'Karrik';  src:url('../fonts/Karrik-Italic.woff2')     format('woff2'); font-weight:400; font-style:italic; }
@font-face { font-family:'Facade';  src:url('../fonts/Facade-Est.woff')         format('woff'); }

/* =============================================
   TOKENS — Light (default)
   ============================================= */
:root {
  --bg:          #FAF0E6;
  --surface:     #FFFFFF;
  --ink:         #1A1A1A;
  --ink-soft:    #6B6B6B;
  --sakura:      #E8748A;
  --sakura-lt:   #F5B8C4;
  --border:      1.5px solid #1A1A1A;
  --border-soft: 1px solid #E0D5C8;
  --shadow:      4px 4px 0 #1A1A1A;
  --grid-line:   rgba(26,26,26,0.055);
  --grid-accent: rgba(232,116,138,0.09);

  --font-display: 'Sligoil', serif;
  --font-body:    'Karrik', sans-serif;
  --font-label:   'Karrik', sans-serif;
  --radius-card:  10px;
  --radius-btn:   3px;
  --max-width:    960px;
}

/* =============================================
   TOKENS — Dark
   ============================================= */
[data-theme="dark"] {
  --bg:          #111111;
  --surface:     #1C1C1C;
  --ink:         #F0E8DC;
  --ink-soft:    #888070;
  --sakura:      #E8748A;
  --sakura-lt:   #6B2535;
  --border:      1.5px solid rgba(240,232,220,0.18);
  --border-soft: 1px solid rgba(240,232,220,0.08);
  --shadow:      4px 4px 0 rgba(240,232,220,0.12);
  --grid-line:   rgba(240,232,220,0.04);
  --grid-accent: rgba(232,116,138,0.07);
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:var(--font-body); }
input, textarea { font-family:var(--font-body); }

/* =============================================
   SKIP NAV (Accessibility)
   ============================================= */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  border-radius: var(--radius-btn);
  text-decoration: none;
}
.skip-nav:focus {
  top: 16px;
}

/* =============================================
   FOCUS VISIBLE (Accessibility)
   ============================================= */
:focus-visible {
  outline: 2px solid var(--sakura);
  outline-offset: 2px;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sakura);
  outline-offset: 2px;
}

/* =============================================
   REDUCED MOTION (Accessibility)
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   BACKGROUND — Editorial vertical rules + grain
   ============================================= */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Vertical lines only — newspaper/editorial feel */
  background-image:
    linear-gradient(90deg, var(--grid-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 192px 100%, 48px 100%;
}
/* Subtle grain overlay instead of horizontal grid */
.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
[data-theme="dark"] .bg-grid::after {
  mix-blend-mode: screen;
  opacity: 0.12;
}

/* =============================================
   CONTROLS (dark + lang)
   ============================================= */
.controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  gap: 8px;
}

.ctrl-btn {
  width: 38px;
  height: 38px;
  border: var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ctrl-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

/* =============================================
   LAYOUT
   ============================================= */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero, .countdown-section, .email-section,
.site-header, .footer, .divider {
  text-align: center;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  padding: 40px 0 32px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  border: var(--border);
  padding: 7px 20px;
  border-radius: var(--radius-btn);
  background: var(--surface);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 20px 0 44px;
  width: 100%;
  text-align: center;
}

.hero-text {
  text-align: center;
  width: 100%;
}

/* =============================================
   AVATAR — Manga panel frame (not circle)
   ============================================= */
.avatar-wrap {
  position: relative;
  width: 110px;
  height: 136px;
}

.avatar-img {
  width: 110px;
  height: 136px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  border: 2.5px solid var(--ink);
  display: block;
  transform: rotate(-2deg);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.avatar-img:hover {
  transform: rotate(0deg);
}

/* Corner brackets — manga viewfinder marks */
.avatar-corners {
  position: absolute;
  inset: -10px;
  pointer-events: none;
}
.avatar-corners::before,
.avatar-corners::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--sakura);
  border-style: solid;
}
.avatar-corners::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}
.avatar-corners::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* Second set of corners via the wrap pseudo-elements */
.avatar-wrap::before,
.avatar-wrap::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--sakura);
  border-style: solid;
  z-index: 5;
  pointer-events: none;
}
.avatar-wrap::before {
  top: -10px;
  right: -10px;
  border-width: 2px 2px 0 0;
}
.avatar-wrap::after {
  bottom: -10px;
  left: -10px;
  border-width: 0 0 2px 2px;
}

.avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -14px;
  background: var(--sakura);
  color: white;
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  border: 2px solid var(--bg);
  z-index: 6;
  white-space: nowrap;
}

/* Headline */
.eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 10px;
  text-align: center;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--sakura);
}

.hero-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 400px;
  line-height: 1.65;
  margin: 14px auto 0;
  text-align: center;
}

/* =============================================
   LABEL
   ============================================= */
.label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 14px;
}

/* =============================================
   COUNTDOWN — Editorial inline style
   ============================================= */
.countdown-section {
  padding: 12px 0 44px;
  width: 100%;
}

.countdown-inline {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--ink-soft);
  line-height: 2;
  letter-spacing: 0.01em;
}

.countdown-inline .cd-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 46px);
  color: var(--ink);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  margin: 0 2px;
  line-height: 1;
  vertical-align: baseline;
}

.countdown-inline .cd-num::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sakura);
  opacity: 0.5;
  border-radius: 1px;
}

.countdown-inline .cd-unit {
  font-size: clamp(13px, 2vw, 15px);
  margin: 0 6px 0 1px;
}

/* =============================================
   EMAIL SECTION
   ============================================= */
.email-section {
  width: 100%;
  max-width: 500px;
  padding-bottom: 60px;
}

.email-headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.input-wrap {
  display: flex;
  gap: 8px;
  border: var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.email-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.email-input::placeholder { color: var(--ink-soft); opacity: 0.6; }

.btn-primary {
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-primary:hover { background: var(--sakura); color: white; }

.email-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 10px;
  font-style: italic;
}

.email-error {
  font-size: 12px;
  color: var(--sakura);
  margin-top: 8px;
  display: none;
}
.email-error.show { display: block; }

/* =============================================
   DIVIDER
   ============================================= */
.divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.divider::before, .divider::after {
  content:'';
  flex:1;
  height: 1.5px;
  background: var(--ink);
  opacity: 0.2;
}
.divider-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* =============================================
   CARDS — Asymmetric featured layout
   ============================================= */
.projects-section { width:100%; margin-bottom:60px; }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
}

/* First card spans full width — featured */
.card:first-child {
  grid-column: 1 / -1;
}

.card:first-child .card-visual {
  height: 180px;
}

.card:first-child .card-body {
  padding: 20px 24px 12px;
}

.card:first-child .card-title {
  font-size: 22px;
}

.card:first-child .card-desc {
  font-size: 14px;
  max-width: 600px;
}

.card {
  border: var(--border);
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Card visuals — dark backgrounds */
.card-visual {
  height: 140px;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 14px;
  border-bottom: var(--border);
  overflow: hidden;
}

.card-visual--1 {
  background: #1A2040;
}
.card-visual--2 {
  background: #0D0D0D;
}
.card-visual--3 {
  background: #2A0F1A;
}

/* Manga screentone hatching instead of radial gradient */
.card-visual--1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(232,116,138,0.07) 6px,
    rgba(232,116,138,0.07) 7px
  );
}

.card-visual--2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(240,232,220,0.03) 8px,
    rgba(240,232,220,0.03) 9px
  );
}

.card-visual--3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -30deg,
    transparent,
    transparent 5px,
    rgba(232,116,138,0.06) 5px,
    rgba(232,116,138,0.06) 6px
  );
}

/* Decorative corner arc (manga panel feel) */
.card-visual::after {
  content:'';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 70px;
  height: 70px;
  border-top: 1.5px solid rgba(255,255,255,0.06);
  border-left: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 0 0 0 56px;
}

.card-tag {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F0E8DC;
  padding: 4px 10px;
  border: 1.5px solid rgba(240,232,220,0.35);
  border-radius: 2px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1;
}

.card-body {
  padding: 16px 18px 10px;
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-top: var(--border-soft);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  transition: all 0.15s;
  min-height: 36px;
  min-width: 36px;
}
.action-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--bg);
}
.like-btn.liked { color: var(--sakura); }
.like-btn.liked svg { fill:var(--sakura); stroke:var(--sakura); }
.info-btn { margin-left: auto; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  border-top: var(--border-soft);
}

.socials { display:flex; gap:8px; }

.social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface);
  transition: all 0.15s;
  position: relative;
}
.social-link:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Tooltip */
.has-tooltip .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.has-tooltip .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.has-tooltip:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-credit { font-size:12px; color:var(--ink-soft); font-style:italic; }
.heart { color:var(--sakura); }

/* =============================================
   FLOATING CHAT BUBBLE
   ============================================= */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  z-index: 90;
  transition: transform 0.2s, background 0.2s;
}
.chat-bubble:hover { transform:scale(1.1); background:var(--sakura); color:white; }

.chat-badge {
  position: absolute;
  top: 3px; right: 3px;
  background: var(--sakura);
  color: white;
  font-family: var(--font-label);
  font-size: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 20px;
}
.modal-overlay.open { opacity:1; pointer-events:all; }

.modal {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 6px 6px 0 var(--ink);
  text-align: left;
  transition: background 0.3s, border-color 0.3s;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  color: var(--ink-soft);
  padding: 4px;
  transition: color 0.15s;
}
.modal-close:hover { color:var(--ink); }

.modal-tag {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sakura);
  margin-bottom: 4px;
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 20px;
}

.modal-form { display:flex; flex-direction:column; gap:10px; }

.modal-input, .modal-textarea {
  padding: 11px 14px;
  border: var(--border);
  background: var(--bg);
  border-radius: var(--radius-btn);
  font-size: 14px;
  outline: none;
  color: var(--ink);
  transition: border-color 0.15s, background 0.3s;
  resize: none;
  width: 100%;
}
.modal-input:focus, .modal-textarea:focus { border-color:var(--sakura); }

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed;
  bottom: 92px;
  right: 28px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--radius-card);
  font-size: 14px;
  max-width: 250px;
  line-height: 1.5;
  z-index: 95;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity:1; transform:translateY(0); }

/* =============================================
   INFO PANEL (slide-up fiche)
   ============================================= */
.info-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.info-panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.info-panel {
  background: var(--surface);
  border: var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 32px 32px 40px;
  width: 100%;
  max-width: 640px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.info-panel-overlay.open .info-panel {
  transform: translateY(0);
}

/* drag handle */
.info-panel::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--border-soft);
  border-radius: 2px;
}

.info-panel-close {
  position: absolute;
  top: 16px; right: 20px;
  color: var(--ink-soft);
  padding: 6px;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.info-panel-close:hover {
  color: var(--ink);
  background: var(--bg);
}

.info-panel-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sakura);
  margin-bottom: 6px;
  margin-top: 8px;
}

.info-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.info-panel-body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

.info-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  font-size: 12px;
  padding: 4px 12px;
  border: var(--border);
  border-radius: 20px;
  color: var(--ink-soft);
  background: var(--bg);
}

/* =============================================
   EMAIL SUCCESS ANIMATION
   ============================================= */
.email-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4ECDC4;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: opacity 0.3s, transform 0.3s;
}
.email-success.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.email-success svg { flex-shrink: 0; stroke: #4ECDC4; }

/* Confetti particles */
.confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  animation: confetti-burst 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes confetti-burst {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .card:first-child {
    grid-column: 1;
  }
  .card:first-child .card-visual {
    height: 155px;
  }
  .card:first-child .card-title {
    font-size: 17px;
  }
  .card:first-child .card-desc {
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .wrapper { padding: 0 16px 80px; }

  .cards-grid {
    max-width: 360px;
  }

  .card:first-child .card-body {
    padding: 16px 18px 10px;
  }

  .countdown-inline .cd-num { font-size: clamp(26px, 7vw, 34px); }

  .input-wrap { flex-direction:column; padding:10px; }
  .email-input { padding: 8px 0; }

  .display { font-size: clamp(22px, 6vw, 36px); }
}