  :root {
    --bg: #f5ecff;
    --bg-warm: #ffe4ef;
    --ink: #3a2d5c;
    --accent: #c89ae0;
    --accent-2: #8fb8e8;
    --accent-3: #ffc2d4;
    --accent-4: #b5d0f0;
    --accent-deep: #9b6fd1;
    --accent-pink: #ff9ec0;
    --wine: #7d1f3f;
    --paper-line: rgba(155, 111, 209, 0.1);
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 48;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    overflow-x: hidden;
    background-image:
      radial-gradient(ellipse 800px 600px at 88% 4%, rgba(155, 111, 209, 0.45), transparent 70%),
      radial-gradient(ellipse 700px 500px at 10% 100%, rgba(255, 158, 192, 0.35), transparent 70%),
      linear-gradient(175deg, #ead4ee 0%, #f0d8ec 35%, #ffd8e6 75%, #ffe4ef 100%);
    background-attachment: fixed;
  }

  /* floating hearts */
  body::after {
    content: '♡ · · ♡ · · · ♡ · · · ♡ · · ♡ · · · ♡ · · · ♡ · · · ♡ · · ♡ · · · ♡ · · · ♡ · · ♡ · · · ♡ · · · ♡ · · ♡';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    font-size: 13px;
    color: var(--accent-pink);
    opacity: 0.18;
    letter-spacing: 4.5em;
    line-height: 5.5em;
    word-spacing: 2.5em;
    overflow: hidden;
    padding: 20px;
  }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
  }

  /* ---------- NAV ---------- */
  nav {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
  }

  .logo {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.4rem;
    font-style: italic;
    font-variation-settings: "opsz" 144;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .logo-dot {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: wobble 3s ease-in-out infinite;
  }

  @keyframes wobble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
  }

  .nav-links {
    display: flex;
    gap: 2rem;
  }

  .nav-links a {
    color: var(--ink);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s;
  }

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

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent-pink));
    transition: width 0.3s ease;
  }

  .nav-links a:hover::after { width: 100%; }

  /* ---------- HERO ---------- */
  .hero {
    padding: 4rem 0 6rem;
    position: relative;
  }

  .hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-deep);
  }

  .hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.95;
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
  }

  .hero h1 .italic {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-pink), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-right: 0.12em;
  }

  .hero h1 .italic::before {
    content: '♡';
    position: absolute;
    top: -0.25em;
    right: -0.7em;
    font-size: 0.45em;
    color: var(--accent-pink);
    -webkit-text-fill-color: var(--accent-pink);
  }

  @keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.4; transform: scale(0.7) rotate(180deg); }
  }

  .hero h1 .squiggle {
    display: inline-block;
    position: relative;
  }

  .hero h1 .squiggle::after {
    content: '';
    position: absolute;
    bottom: -0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'><path d='M0,5 Q25,0 50,5 T100,5' stroke='%23ff9ec0' stroke-width='3' fill='none'/></svg>") repeat-x;
    background-size: 100px 10px;
  }

  .hero-bio {
    max-width: 620px;
    color: var(--ink);
    margin-bottom: 2.5rem;
  }

  .hero-bio p {
    font-size: 1.35rem;
    line-height: 1.5;
  }

  .hero-bio .bio-aside {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.55;
    margin-top: 1.2rem;
    opacity: 0.85;
  }

  .hero-bio .highlight {
    background: linear-gradient(120deg, var(--accent-3), var(--accent-4));
    padding: 0 0.3em;
    border-radius: 4px;
    font-weight: 600;
  }

  .hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
    background: rgba(255, 194, 212, 0.4);
    border: 1px solid var(--accent-pink);
    border-radius: 100px;
    color: var(--ink);
    backdrop-filter: blur(4px);
  }

  .status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-pink);
    animation: pulse 2s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  /* floating decorative element */
  .floating-sticker {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 30% 30%, var(--accent-pink), var(--accent-deep));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.3;
    padding: 1rem;
    transform: rotate(-8deg);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 158, 192, 0.6), 0 8px 24px rgba(155, 111, 209, 0.3);
  }

  @keyframes float {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-8px); }
  }

  /* ---------- SECTIONS ---------- */
  section { padding: 5rem 0; position: relative; }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.02em;
  }

  .section-header h2 em {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-right: 0.25em;
    margin-right: -0.1em;
  }

  /* ---------- PROJECTS ---------- */
  .projects {
    display: grid;
    gap: 2rem;
  }

  .project-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(200, 154, 224, 0.4);
    border-radius: 24px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
    cursor: pointer;
  }

  .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(155, 111, 209, 0.25), 0 0 0 1px var(--accent-pink);
    border-color: var(--accent-pink);
  }

  .project-card:nth-child(even) { grid-template-columns: 2fr 1fr; }
  .project-card:nth-child(even) .project-visual { order: 2; }

  .project-visual {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--accent-3), var(--accent));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.3);
  }

  .project-card:nth-child(2) .project-visual {
    background: linear-gradient(135deg, var(--accent-4), var(--accent-2));
  }
  .project-card:nth-child(3) .project-visual {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent));
  }
  .project-card:nth-child(4) .project-visual {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  }

  .project-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3), transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.2), transparent 40%);
  }

  .project-visual::after {
    content: '♡';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
  }

  .project-content h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-variation-settings: "opsz" 144;
  }

  .project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .project-tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    background: rgba(200, 154, 224, 0.2);
    border: 1px solid var(--accent);
    border-radius: 100px;
    color: var(--accent-deep);
  }

  .project-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .project-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-deep);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
  }

  .project-link:hover { color: var(--accent-pink); text-decoration: underline; }

  /* ---------- ABOUT ---------- */
  .about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .about-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
  }

  .facts-card {
    background: linear-gradient(145deg, var(--accent-2), var(--accent-deep));
    color: white;
    padding: 2rem;
    border-radius: 20px;
    transform: rotate(1.5deg);
    box-shadow: 0 10px 30px rgba(155, 111, 209, 0.35), -4px 4px 0 var(--accent-pink);
    position: relative;
  }

  .facts-card::before {
    content: '♡';
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.3rem;
    color: var(--accent-3);
  }

  .facts-card h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-3);
    margin-bottom: 1.2rem;
  }

  .facts-card ul {
    list-style: none;
  }

  .facts-card li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
  }

  .facts-card li:last-child { border-bottom: none; }

  .facts-card li span:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-3);
    opacity: 0.85;
  }

  /* ---------- CONTACT ---------- */
  .contact {
    text-align: center;
    padding: 8rem 0;
  }

  .contact h2 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
  }

  .contact h2 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-pink), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .contact-email {
    display: inline-block;
    font-size: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--wine), var(--accent-pink));
    color: white;
    text-decoration: none;
    border-radius: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(125, 31, 63, 0.35);
  }

  .contact-email:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 40px rgba(125, 31, 63, 0.5);
  }

  .socials {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
  }

  .socials a {
    color: var(--accent-deep);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--accent);
    border-radius: 100px;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
  }

  .socials a:hover {
    background: var(--accent);
    color: white;
    transform: rotate(-3deg) translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 154, 224, 0.4);
  }

  /* ---------- FOOTER ---------- */
  footer {
    padding: 2rem 0;
    border-top: 1px solid var(--paper-line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.6;
  }

  /* ---------- REVEAL ANIMATION ---------- */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.8s ease forwards;
  }

  .reveal-1 { animation-delay: 0.1s; }
  .reveal-2 { animation-delay: 0.3s; }
  .reveal-3 { animation-delay: 0.5s; }
  .reveal-4 { animation-delay: 0.7s; }

  @keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
  }

  /* ---------- DACHSHUNDS ---------- */
  .doxie-svg {
    overflow: visible;
  }

  /* Walking doxie across the top */
  .walking-doxie {
    position: fixed;
    bottom: 20px;
    left: -120px;
    width: 110px;
    z-index: 3;
    animation: walk-across 28s linear infinite;
    pointer-events: none;
  }

  .walking-doxie .legs-front,
  .walking-doxie .legs-back {
    transform-origin: top center;
    animation: trot 0.35s ease-in-out infinite alternate;
  }

  .walking-doxie .legs-back {
    animation-delay: 0.17s;
  }

  @keyframes walk-across {
    0% { left: -120px; transform: scaleX(1); }
    49% { left: calc(100% + 10px); transform: scaleX(1); }
    50% { left: calc(100% + 10px); transform: scaleX(-1); }
    99% { left: -120px; transform: scaleX(-1); }
    100% { left: -120px; transform: scaleX(1); }
  }

  @keyframes trot {
    from { transform: rotate(-15deg); }
    to { transform: rotate(15deg); }
  }

  @keyframes wag {
    from { transform: rotate(-20deg); }
    to { transform: rotate(25deg); }
  }

  /* Logo doxie */
  .logo-doxie {
    width: 36px;
    height: auto;
  }

  /* Sleeping doxie in about section */
  .about-doxie {
    width: 100%;
    max-width: 220px;
    margin-top: 1.5rem;
    display: block;
  }

  .about-doxie .z {
    animation: float-z 3s ease-in-out infinite;
    opacity: 0;
  }

  .about-doxie .z-1 { animation-delay: 0s; }
  .about-doxie .z-2 { animation-delay: 1s; }
  .about-doxie .z-3 { animation-delay: 2s; }

  @keyframes float-z {
    0% { opacity: 0; transform: translate(0, 0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(12px, -20px); }
  }

  /* Section doxie divider */
  .doxie-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 1rem;
    gap: 0.5rem;
  }

  .doxie-divider .line {
    flex: 1;
    height: 1px;
    background: var(--paper-line);
    max-width: 120px;
  }

  .doxie-divider svg { width: 50px; height: auto; }

  /* ---------- LANG TOGGLE ---------- */
  .lang-toggle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--accent);
    border-radius: 100px;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    color: var(--ink);
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    margin-left: 0.5rem;
    backdrop-filter: blur(4px);
  }

  .lang-toggle:hover {
    background: rgba(200, 154, 224, 0.3);
    border-color: var(--accent-deep);
    transform: rotate(-2deg);
  }

  .lang-toggle span {
    opacity: 0.35;
    transition: opacity 0.25s, color 0.25s;
  }

  .lang-toggle span.active {
    opacity: 1;
    color: var(--accent-deep);
    font-weight: 600;
  }

  /* ---------- SELECTION ---------- */
  ::selection {
    background: var(--accent-pink);
    color: white;
  }

  /* ---------- BACKGROUND CONSTELLATIONS ---------- */
  .bg-constellations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }

  .con {
    position: absolute;
    color: var(--accent-deep);
  }

  .con svg { width: 100%; height: auto; display: block; overflow: visible; }

  .con .star {
    fill: var(--accent-deep);
    transform-origin: center;
    animation: star-twinkle 4s ease-in-out infinite;
  }

  .con .line {
    stroke: var(--accent-deep);
    stroke-width: 0.4;
    fill: none;
    opacity: 0.45;
  }

  .con .star-bright {
    fill: var(--wine);
    animation: star-twinkle 3s ease-in-out infinite;
  }

  @keyframes star-twinkle {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 0.35; }
  }

  .con-slot-1 { top: 5%;   right: 2%; }
  .con-slot-2 { top: 30%;  left: 1%; }
  .con-slot-3 { top: 58%;  left: 3%; }
  .con-slot-4 { bottom: 5%; right: 4%; }

  @media (max-width: 1024px) {
    .con-slot-2, .con-slot-3 { display: none; }
  }
  @media (max-width: 768px) {
    .bg-constellations { opacity: 0.55; }
    .con-slot-1, .con-slot-4 { transform: scale(0.7); transform-origin: top right; }
    .con-slot-4 { transform-origin: bottom right; }
  }

  /* ---------- HERO PILLS / CELESTIAL ---------- */
  .hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
  }

  .hero-celestial {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
    background: rgba(125, 31, 63, 0.08);
    border: 1px solid rgba(125, 31, 63, 0.4);
    border-radius: 100px;
    color: var(--wine);
    backdrop-filter: blur(4px);
  }

  .hero-celestial .moon-icon {
    font-size: 1rem;
    line-height: 1;
  }

  .hero-sky-note {
    margin-top: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--accent-deep);
    opacity: 0.75;
  }

  .hero-sky-note .sky-list {
    color: var(--wine);
    font-style: italic;
    margin-left: 0.4em;
  }

  /* ---------- TAROT ---------- */
  .tarot-section { padding: 5rem 0; }

  .tarot-stage {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    perspective: 1200px;
  }

  .tarot-deck {
    width: 220px;
    height: 340px;
    cursor: pointer;
    border: none;
    padding: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2a1840 0%, #4a2c5e 60%, #5e2e60 100%);
    box-shadow:
      0 14px 36px rgba(40, 16, 60, 0.45),
      4px 4px 0 #5a3470,
      8px 8px 0 #6f3f80,
      12px 12px 0 #84497f;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
    color: #ffd782;
    font-family: 'Fraunces', serif;
    font-style: italic;
  }

  .tarot-deck:hover,
  .tarot-deck:focus-visible {
    transform: translate(-3px, -5px) rotate(-2deg);
    outline: none;
    box-shadow:
      0 20px 44px rgba(40, 16, 60, 0.55),
      4px 4px 0 #5a3470,
      8px 8px 0 #6f3f80,
      12px 12px 0 #84497f;
  }

  .tarot-deck::before,
  .tarot-deck::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 215, 130, 0.55);
    border-radius: 8px;
    pointer-events: none;
  }

  .tarot-deck::after {
    inset: 14px;
    border-color: rgba(255, 215, 130, 0.25);
  }

  .deck-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1rem;
    text-align: center;
  }

  .deck-face .deck-top,
  .deck-face .deck-bottom {
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    opacity: 0.85;
  }

  .deck-face .deck-sigil {
    font-size: 3.2rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(255, 215, 130, 0.5));
  }

  .deck-face .deck-prompt {
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
  }

  .tarot-pulled[hidden] { display: none; }

  .card-front {
    width: 240px;
    min-height: 360px;
    border-radius: 14px;
    background: linear-gradient(160deg, #fbecd6 0%, #f4dac0 100%);
    border: 2px solid var(--wine);
    box-shadow: 0 16px 44px rgba(125, 31, 63, 0.35);
    padding: 1.6rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--ink);
    position: relative;
    transform-origin: center;
    animation: card-flip-in 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
  }

  .card-front::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--wine);
    border-radius: 8px;
    opacity: 0.4;
    pointer-events: none;
  }

  @keyframes card-flip-in {
    0%   { transform: rotateY(180deg) scale(0.85); opacity: 0; }
    60%  { transform: rotateY(0deg)   scale(1.04); opacity: 1; }
    100% { transform: rotateY(0deg)   scale(1);    opacity: 1; }
  }

  .card-front .roman {
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-size: 0.8rem;
    color: var(--wine);
    letter-spacing: 0.25em;
    margin-bottom: 0.6rem;
  }

  .card-front .card-name {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    font-size: 1.5rem;
    line-height: 1.05;
    color: var(--wine);
    margin-bottom: 1rem;
  }

  .card-front .card-symbol {
    font-size: 3.6rem;
    line-height: 1;
    margin: 0.6rem 0 1rem;
    color: var(--wine);
  }

  .card-front .card-meaning {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.45;
    margin-top: auto;
    opacity: 0.85;
  }

  .tarot-shuffle {
    display: block;
    margin: 1.2rem auto 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid var(--wine);
    color: var(--wine);
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
  }

  .tarot-shuffle:hover {
    background: var(--wine);
    color: white;
    transform: translateY(-2px);
  }

  /* ---------- TIME-OF-DAY MOOD ---------- */
  body.mood-dusk {
    background-image:
      radial-gradient(ellipse 800px 600px at 88% 4%, rgba(125, 31, 63, 0.4), transparent 70%),
      radial-gradient(ellipse 700px 500px at 10% 100%, rgba(155, 111, 209, 0.45), transparent 70%),
      linear-gradient(175deg, #d8b8e0 0%, #d8b4d8 35%, #e0bcd0 75%, #e8c4d4 100%);
  }
  body.mood-dusk .con .star { opacity: 0.7; }
  body.mood-dusk .con .star-bright { opacity: 0.9; }
  body.mood-dusk .con .line { opacity: 0.6; }
  body.mood-dusk::after { opacity: 0.28; }

  body.mood-night {
    background-image:
      radial-gradient(ellipse 800px 600px at 88% 4%, rgba(125, 31, 63, 0.55), transparent 70%),
      radial-gradient(ellipse 700px 500px at 10% 100%, rgba(155, 111, 209, 0.5), transparent 70%),
      linear-gradient(175deg, #b89ac8 0%, #c098cc 30%, #c8a0c8 70%, #d4a8c8 100%);
  }
  body.mood-night .con .star { opacity: 0.9; }
  body.mood-night .con .star-bright { opacity: 1; filter: drop-shadow(0 0 4px var(--wine)); }
  body.mood-night .con .line { opacity: 0.75; }
  body.mood-night::after { opacity: 0.38; }

  body.mood-witching {
    background-image:
      radial-gradient(ellipse 800px 600px at 88% 4%, rgba(125, 31, 63, 0.65), transparent 70%),
      radial-gradient(ellipse 700px 500px at 10% 100%, rgba(155, 111, 209, 0.6), transparent 70%),
      linear-gradient(175deg, #a888c0 0%, #b090c8 30%, #b89ac8 70%, #c0a4c8 100%);
  }
  body.mood-witching .con .star { opacity: 1; }
  body.mood-witching .con .star-bright { opacity: 1; filter: drop-shadow(0 0 6px var(--wine)); animation-duration: 2.5s; }
  body.mood-witching .con .line { opacity: 0.85; }
  body.mood-witching::after { opacity: 0.45; }

  /* ---------- FLOATING STICKER POLISH ---------- */
  .floating-sticker strong {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    margin: 0.2rem 0;
    font-family: 'Fraunces', serif;
    font-weight: 900;
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 768px) {
    .project-card, .project-card:nth-child(even) {
      grid-template-columns: 1fr;
    }
    .project-card:nth-child(even) .project-visual { order: 0; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .floating-sticker { display: none; }
    .nav-links { gap: 1rem; font-size: 0.75rem; }
    .hero { padding: 2rem 0 4rem; }
  }

  /* ---------- CONTACT PAGE: LETTER FORM ---------- */
  .letter-intro {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
  }

  .letter-intro h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 1;
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
  }

  .letter-intro h1 em {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-pink), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .letter-intro p {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.9;
  }

  .letter-paper {
    max-width: 640px;
    margin: 0 auto;
    background:
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 34px,
        rgba(155, 111, 209, 0.09) 34px,
        rgba(155, 111, 209, 0.09) 35px
      ),
      linear-gradient(180deg, #fffaf0 0%, #fff4f0 100%);
    border-radius: 16px;
    padding: 3rem 2.5rem 2.5rem 4rem;
    box-shadow: 0 20px 60px rgba(155, 111, 209, 0.22), -4px 4px 0 var(--accent-pink);
    position: relative;
    transform: rotate(-0.5deg);
    transition: transform 0.4s ease;
  }

  .letter-paper:hover { transform: rotate(0deg); }

  .letter-paper::before {
    content: '';
    position: absolute;
    left: 3rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 1.5px;
    background: rgba(255, 158, 192, 0.55);
  }

  .letter-paper::after {
    content: '♡';
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.4rem;
    color: var(--accent-pink);
  }

  .letter-paper .field { margin-bottom: 1.6rem; }

  .letter-paper label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-deep);
    margin-bottom: 0.4rem;
  }

  .letter-paper input,
  .letter-paper textarea,
  .letter-paper select {
    width: 100%;
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(155, 111, 209, 0.3);
    padding: 0.45rem 0;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
  }

  .letter-paper input:focus,
  .letter-paper textarea:focus,
  .letter-paper select:focus {
    border-bottom-color: var(--accent-deep);
  }

  .letter-paper textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
  }

  .letter-paper select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1 L5 5 L9 1' stroke='%239b6fd1' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 12px;
    padding-right: 1.5rem;
    cursor: pointer;
  }

  .letter-paper .bot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .send-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-pink));
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 24px rgba(155, 111, 209, 0.35);
  }

  .send-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(155, 111, 209, 0.5);
  }

  .send-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
  }

  .send-btn .send-heart { transition: transform 0.3s; }
  .send-btn:hover .send-heart { transform: rotate(20deg) scale(1.2); }

  .form-error {
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--wine);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .form-error.visible { opacity: 1; }

  /* ---------- FLYING ENVELOPE + HEARTS (animated via JS) ---------- */
  .flying-letter {
    position: fixed;
    width: 84px;
    height: auto;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform-origin: center;
    filter: drop-shadow(0 6px 14px rgba(155, 111, 209, 0.35));
  }

  .heart-puff {
    position: fixed;
    z-index: 99;
    pointer-events: none;
    font-family: 'Fraunces', serif;
    color: var(--accent-pink);
    opacity: 0;
  }

  /* ---------- SENT CONFIRMATION ---------- */
  .letter-sent {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    animation: sent-appear 0.7s ease 0.4s both;
  }

  @keyframes sent-appear {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .letter-sent .sent-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-deep);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--accent);
    border-radius: 100px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
  }

  .letter-sent h2 {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
  }

  .letter-sent p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.88;
  }

  .letter-sent .again-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid var(--accent-deep);
    color: var(--accent-deep);
    padding: 0.55rem 1.3rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
  }

  .letter-sent .again-btn:hover {
    background: var(--accent-deep);
    color: white;
    transform: translateY(-2px);
  }

  @media (max-width: 640px) {
    .letter-paper { padding: 2.2rem 1.4rem 1.8rem 2.6rem; }
    .letter-paper::before { left: 1.8rem; }
  }

  /* ---------- COMING SOON ---------- */
  .coming-soon {
    padding: 6rem 0 8rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
  }

  .coming-soon h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.98;
    font-weight: 900;
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
  }

  .coming-soon h1 em {
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-pink), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .coming-soon p {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.55;
    opacity: 0.85;
  }
