/* ============================================================
   THE CASE BOARD — محمود عاطف · portfolio v4
   cork board · pinned cases · light mode only · hand-made
   ============================================================ */

:root{
  --ink:#2b2b33;
  --ink-soft:#4a4a55;
  --paper:#fdfaf1;
  --cork:#d3ac77;
  --kraft:#dabf92;
  --stamp:#c0392b;
  --teal:#2f8f83;
  --note-yellow:#ffe97a;
  --marker-yellow:#ffd66b;
  --desk:#ece5d8;
  --noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0.4'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-hard:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='h'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -0.32'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23h)'/%3E%3C/svg%3E");
}

*{box-sizing:border-box; margin:0; padding:0}
html{scroll-behavior:smooth; scroll-padding-top:24px}

body{
  font-family:'IBM Plex Sans Arabic','Segoe UI',sans-serif;
  color:var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, #f4efe4, transparent 70%),
    var(--desk);
  padding:clamp(14px,3vw,40px) clamp(10px,2vw,26px) 70px;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
body::after{
  content:''; position:fixed; inset:0; z-index:9999;
  background-image:var(--noise); background-size:180px;
  opacity:.05; mix-blend-mode:multiply; pointer-events:none;
}
::selection{background:rgba(255,214,107,.75)}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:2.5px dashed #2456a6; outline-offset:3px; border-radius:8px}

/* ── fonts by language ── */
body.lang-ar .hand{font-family:'Caveat','Aref Ruqaa','Segoe UI',Tahoma,sans-serif; font-weight:400}
body.lang-en .hand{font-family:'Caveat',cursive; font-weight:600}
.hand{line-height:1.75}
body.lang-en .hand{line-height:1.42}
body.lang-ar .typed{font-family:'IBM Plex Sans Arabic',sans-serif; font-weight:500}
body.lang-en .typed{font-family:'Special Elite',monospace; letter-spacing:.03em}
body.lang-ar .stamp{font-family:'Aref Ruqaa','Segoe UI',Tahoma,sans-serif; font-weight:700}
body.lang-en .stamp{font-family:'Stardos Stencil',cursive}

/* ── wood frame + cork ── */
.frame{
  max-width:1240px; margin:0 auto; position:relative;
  padding:clamp(14px,1.8vw,20px); border-radius:14px;
  background:
    repeating-linear-gradient(94deg,#a97a4b 0 22px,#9c6c40 22px 26px,#b28356 26px 48px,#93652f 48px 52px),
    #9c6c40;
  box-shadow:
    0 30px 60px -18px rgba(70,45,15,.5),
    0 4px 12px rgba(70,45,15,.25),
    inset 0 0 0 2px rgba(80,50,20,.45),
    inset 0 0 0 6px rgba(255,235,200,.08);
}
.screw{position:absolute; width:13px; height:13px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #f2efe8, #c4beb0 55%, #756e62);
  box-shadow:0 1px 2px rgba(0,0,0,.45); z-index:10}
.screw::before{content:''; position:absolute; inset:3px; border-radius:2px;
  background:
    linear-gradient(45deg, transparent 42%, #575247 42% 58%, transparent 58%),
    linear-gradient(135deg, transparent 42%, #575247 42% 58%, transparent 58%)}
.s-tl{top:7px; left:7px}.s-tr{top:7px; right:7px}
.s-bl{bottom:7px; left:7px}.s-br{bottom:7px; right:7px}

.board{
  position:relative; border-radius:5px; min-height:600px;
  padding:clamp(20px,3.5vw,46px) clamp(16px,3vw,40px) clamp(30px,4vw,50px);
  overflow:hidden;
  box-shadow:inset 0 0 0 2px rgba(94,58,24,.5), inset 0 4px 18px rgba(80,50,20,.35);
  background:
    radial-gradient(ellipse 90% 60% at 30% 0%, rgba(255,235,190,.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(101,64,25,.16), transparent 60%),
    repeating-radial-gradient(circle at 30% 30%, rgba(122,79,40,.13) 0 1.6px, transparent 1.6px 6.5px),
    repeating-radial-gradient(circle at 70% 65%, rgba(255,225,168,.18) 0 1.2px, transparent 1.2px 5px),
    repeating-radial-gradient(circle at 15% 80%, rgba(122,79,40,.10) 0 2.2px, transparent 2.2px 9px),
    var(--cork);
}
#threads{position:absolute; inset:0; z-index:1; pointer-events:none; overflow:visible}

/* ── pins ── */
.pin{
  position:absolute; top:-10px; left:50%; width:24px; height:24px;
  margin-left:-12px; z-index:7; border-radius:50%; cursor:grab; touch-action:none;
  background:radial-gradient(circle at 34% 28%, #ffb0a0 0 12%, #d84433 45%, #8f2015 78%, #5e120a);
  box-shadow:
    0 6px 8px -2px rgba(60,25,10,.5),
    inset -2px -3px 4px rgba(0,0,0,.28),
    inset 2px 2px 3px rgba(255,255,255,.35);
}
.pin::after{content:''; position:absolute; top:17px; left:10px; width:5px; height:8px;
  background:rgba(40,20,8,.3); border-radius:50%; filter:blur(1px); transform:rotate(14deg)}
#pin-cf,#pin-sql{
  background:radial-gradient(circle at 34% 28%, #a8ece0 0 12%, #3aa695 45%, #176152 78%, #0c3a31);
}
body.dragging-active, body.dragging-active *{cursor:grabbing !important}

/* ── paper base ── */
.card,.sticky,.receipt,.tag,.polaroid,.case-slot,.envelope-card,.torn-cta,.paper,.note-slip,.soc-tag{
  position:relative; border-radius:4px;
  box-shadow:0 1px 2px rgba(50,30,8,.18), 0 10px 24px -8px rgba(60,38,12,.38);
}

/* ── reveal on scroll ── */
[data-reveal]{
  opacity:0; transform:translateY(26px) rotate(0deg);
  transition:transform .6s cubic-bezier(.2,.85,.25,1.18), opacity .45s ease;
}
[data-reveal].revealed{opacity:1; transform:translateY(0) rotate(var(--rot,0deg))}
[data-reveal].revealed:hover{transform:translateY(-4px) rotate(calc(var(--rot,0deg) * .5))}
.dragging{transition:none !important; z-index:30}
.dragging .pin{cursor:grabbing}

/* ── stamps ── */
.stamp{
  position:absolute; z-index:6; pointer-events:none;
  display:inline-block; padding:.3em .75em;
  border:3px solid rgba(192,57,43,.85); border-radius:7px;
  color:rgba(192,57,43,.92); font-size:clamp(.95rem,1.6vw,1.25rem);
  letter-spacing:.06em; text-transform:uppercase; line-height:1.25; text-align:center;
  transform:rotate(var(--srot,0deg)); mix-blend-mode:multiply;
  -webkit-mask-image:var(--noise-hard); mask-image:var(--noise-hard);
  -webkit-mask-size:90px; mask-size:90px;
  opacity:0;
}
.stamp::after{content:''; position:absolute; inset:3px; border:1.5px solid rgba(192,57,43,.65); border-radius:4px}
.stamp.stamped{animation:stampIn .55s cubic-bezier(.2,1.4,.3,1) .25s forwards}
@keyframes stampIn{
  0%{opacity:0; transform:rotate(var(--srot,0deg)) scale(2.6)}
  55%{opacity:1; transform:rotate(var(--srot,0deg)) scale(.92)}
  100%{opacity:1; transform:rotate(var(--srot,0deg)) scale(1)}
}
.stamp-available{top:-16px; inset-inline-end:22px}
.stamp-closed{bottom:12px; inset-inline-start:-10px; font-size:clamp(1.05rem,1.8vw,1.4rem)}

/* ── tape ── */
.tape{
  display:inline-block; position:relative;
  padding:8px 22px;
  background:linear-gradient(180deg, rgba(252,248,197,.78), rgba(250,245,180,.66));
  box-shadow:0 2px 6px rgba(90,60,20,.18);
  clip-path:polygon(1% 0%, 99% 4%, 100% 92%, 97% 100%, 2% 96%, 0 10%);
  transform:rotate(-1deg);
}
.tape-head{display:flex; flex-direction:column; gap:2px; padding:10px 26px; transform:rotate(-1.2deg)}
.tape-head .typed{font-size:12px; letter-spacing:.1em; color:#5c5647}
.tape-sub{font-size:10px; opacity:.75}
.tape-foot{margin:clamp(36px,6vw,64px) auto 6px; display:table; transform:rotate(-.6deg)}
.tape-foot .hand{font-size:1.05rem; color:#5c5647}
.tape-mini{position:absolute; top:-12px; left:50%; transform:translateX(-50%) rotate(-2.5deg);
  width:96px; height:26px; padding:0}
.torn-cta>.tape{position:absolute; top:-13px; left:50%; transform:translateX(-50%) rotate(1.5deg); width:110px; height:26px; padding:0}

/* ── buttons (wobbly hand-drawn) ── */
.btn{
  display:inline-block; text-decoration:none; color:var(--ink); cursor:pointer;
  font-size:clamp(1.1rem,1.8vw,1.3rem);
  border:2.2px solid var(--ink);
  border-radius:255px 18px 225px 18px/18px 225px 18px 255px;
  background:#fffdf6; padding:.5em 1.2em;
  box-shadow:2px 3px 0 rgba(43,43,51,.28);
  transition:transform .18s ease, box-shadow .18s ease;
}
.btn:hover{transform:translate(-1px,-2px) rotate(-.6deg); box-shadow:4px 6px 0 rgba(43,43,51,.24)}
.btn:active{transform:translate(1px,1px); box-shadow:1px 1px 0 rgba(43,43,51,.3)}
.btn-primary{background:rgba(255,214,107,.72)}

/* ── header cluster ── */
.cluster-head{display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap;
  margin-bottom:clamp(22px,3.5vw,40px)}
.head-side{display:flex; align-items:center; gap:16px}
.hint-note{
  font-size:10.5px; letter-spacing:.12em; color:rgba(43,43,51,.72);
  background:rgba(255,253,246,.72); padding:7px 13px;
  border:1.5px dashed rgba(43,43,51,.38); border-radius:3px;
  transform:rotate(1.2deg);
}
.lang-tab{
  width:56px; height:56px; cursor:pointer; color:var(--ink);
  border:2.2px solid var(--ink);
  border-radius:50% 46% 52% 48%/48% 52% 46% 54%;
  background:#fffdf6; font-size:1.35rem;
  box-shadow:2px 3px 0 rgba(43,43,51,.24);
  transform:rotate(-3deg); transition:transform .2s ease;
}
.lang-tab:hover{transform:rotate(3deg) scale(1.06)}
.lang-tab:active{transform:scale(.94)}

/* ── hero ── */
.cluster{position:relative; z-index:2}
.cluster + .cluster{margin-top:clamp(36px,5.5vw,64px)}
.cluster-hero{display:grid; grid-template-columns:minmax(0,2.2fr) minmax(260px,1fr);
  gap:clamp(22px,3.5vw,44px); align-items:start}
.hero-card{
  padding:clamp(26px,4vw,52px) clamp(22px,3.5vw,44px);
  background:
    radial-gradient(circle 7px at 30px 44px, rgba(70,45,18,.85) 0 4px, rgba(0,0,0,.22) 4px 6px, transparent 6.5px),
    radial-gradient(circle 7px at 30px 76px, rgba(70,45,18,.85) 0 4px, rgba(0,0,0,.22) 4px 6px, transparent 6.5px),
    linear-gradient(180deg, transparent 0 26px, rgba(211,47,47,.5) 26px 27.5px, transparent 27.5px 30px, rgba(211,47,47,.5) 30px 31.5px, transparent 31.5px),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(100,140,190,.33) 46px 47px, transparent 47px 79px),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,252,244,.8)),
    var(--paper);
}
body.lang-en .hero-card{
  background:
    radial-gradient(circle 7px at calc(100% - 30px) 44px, rgba(70,45,18,.85) 0 4px, rgba(0,0,0,.22) 4px 6px, transparent 6.5px),
    radial-gradient(circle 7px at calc(100% - 30px) 76px, rgba(70,45,18,.85) 0 4px, rgba(0,0,0,.22) 4px 6px, transparent 6.5px),
    linear-gradient(180deg, transparent 0 26px, rgba(211,47,47,.5) 26px 27.5px, transparent 27.5px 30px, rgba(211,47,47,.5) 30px 31.5px, transparent 31.5px),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(100,140,190,.33) 46px 47px, transparent 47px 79px),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,252,244,.8)),
    var(--paper);
}
.v4-tag{font-size:11px; letter-spacing:.16em; color:#7a7466; text-align:left; margin-bottom:14px; transform:rotate(-.8deg)}
.hero-name{font-size:clamp(2.7rem,6.5vw,4.4rem); line-height:1.2; font-weight:700}
body.lang-en .hero-name{font-size:clamp(3.2rem,7.5vw,5.3rem); line-height:1.05}
.role{margin-top:6px; font-size:clamp(12px,1.4vw,14.5px); letter-spacing:.14em; color:#4a5b78}
.tagline{margin-top:clamp(14px,2vw,22px); font-size:clamp(1.1rem,1.9vw,1.4rem); max-width:36ch; color:#3a3a42}
.cta-row{display:flex; gap:16px; flex-wrap:wrap; margin-top:clamp(20px,3vw,30px)}

/* ── stats + receipt ── */
.hero-side{display:flex; flex-direction:column; gap:clamp(20px,2.5vw,30px); align-items:center}
.stats{display:flex; gap:14px; justify-content:center; flex-wrap:wrap}
.stat{width:132px; min-height:106px; padding:12px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:9px; text-align:center; background:var(--paper)}
.stat-label{font-size:.98rem; line-height:1.55}
.tally{display:inline-flex; gap:4px; align-items:flex-end; height:24px}
.tally i{width:3px; height:100%; background:var(--ink); border-radius:2px; transform:rotate(3deg)}
.tally i:nth-child(2n){transform:rotate(-4deg); height:90%}
.tally i:nth-child(3n){height:96%; transform:rotate(6deg)}
.mini-stamp{
  width:54px; height:54px; display:grid; place-items:center;
  border:2.5px solid rgba(192,57,43,.85); border-radius:50%;
  color:rgba(192,57,43,.92); font-family:'Stardos Stencil',cursive; font-size:1rem;
  transform:rotate(-8deg); mix-blend-mode:multiply;
  -webkit-mask-image:var(--noise-hard); mask-image:var(--noise-hard);
  -webkit-mask-size:90px; mask-size:90px;
}
.receipt{
  width:min(280px,100%); padding:16px 16px 24px; background:linear-gradient(180deg,#ffffff,#fbfaf5);
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - 7px), 94% 100%, 88% calc(100% - 7px), 82% 100%, 76% calc(100% - 7px), 70% 100%, 64% calc(100% - 7px), 58% 100%, 52% calc(100% - 7px), 46% 100%, 40% calc(100% - 7px), 34% 100%, 28% calc(100% - 7px), 22% 100%, 16% calc(100% - 7px), 10% 100%, 4% calc(100% - 7px), 0 100%);
}
.receipt-head{text-align:center; font-size:12px; letter-spacing:.1em;
  border-bottom:1.5px dashed #b9b2a4; padding-bottom:9px; color:#55504a}
.receipt-line{font-size:.95rem; margin:10px 2px 4px; color:#453f37}
.receipt-items{list-style:none; margin:4px 0 10px}
.receipt-items li{display:flex; justify-content:space-between; align-items:baseline; gap:8px;
  padding:5px 2px; border-bottom:1px dotted #cfc8ba; font-size:12px}
.receipt-items .typed{color:#55504a; font-size:11.5px}
.receipt-items .hand{flex:1; text-align:end; font-size:.95rem; color:#453f37}
.tick{color:#2e7d32; font-weight:700}
.receipt-status{text-align:center; font-size:12px; letter-spacing:.14em; color:#2e7d32; margin-top:8px}
.barcode{height:34px; margin:12px 4px 7px;
  background:repeating-linear-gradient(90deg,
    #2b2b33 0 2px, transparent 2px 4px, #2b2b33 4px 7px, transparent 7px 8px,
    #2b2b33 8px 9px, transparent 9px 13px, #2b2b33 13px 15px, transparent 15px 17px)}
.receipt-foot{text-align:center; font-size:.95rem; color:#6d675c}

/* ── section labels ── */
.sec-label{display:flex; align-items:baseline; gap:14px; flex-wrap:wrap;
  margin-bottom:clamp(18px,2.5vw,28px); transform:rotate(-.6deg)}
.sec-no{font-size:12px; letter-spacing:.16em; color:#8a6a3c;
  background:rgba(255,253,246,.68); padding:6px 13px;
  border:1.5px dashed rgba(138,106,60,.55); border-radius:3px}
.sec-title{font-size:clamp(1.55rem,3vw,2.1rem); color:#4c3a1e}

/* ── about stickies ── */
.stickies{display:flex; flex-wrap:wrap; gap:clamp(22px,3vw,34px); align-items:flex-start}
.sticky{width:min(310px,100%); padding:24px 22px 28px; font-size:1.06rem}
.sticky-title{font-size:12px; letter-spacing:.12em; color:rgba(43,43,51,.72); margin-bottom:9px}
.sticky-yellow{background:linear-gradient(180deg,#fff3a0,#ffe97a);
  box-shadow:0 1px 2px rgba(50,30,8,.18), 0 10px 24px -8px rgba(60,38,12,.38), inset 0 6px 8px -6px rgba(120,90,10,.28)}
.sticky-mint{background:linear-gradient(180deg,#dff5e2,#cdeed4);
  box-shadow:0 1px 2px rgba(50,30,8,.18), 0 10px 24px -8px rgba(60,38,12,.38), inset 0 6px 8px -6px rgba(20,80,40,.22)}
.sticky-pink{background:linear-gradient(180deg,#ffdfE8,#ffd3e0);
  box-shadow:0 1px 2px rgba(50,30,8,.18), 0 10px 24px -8px rgba(60,38,12,.38), inset 0 6px 8px -6px rgba(150,60,90,.22)}
.sticky::after{content:''; position:absolute; bottom:0; inset-inline-end:0; width:26px; height:26px;
  background:linear-gradient(to bottom left, rgba(0,0,0,0) 0 47%, rgba(0,0,0,.09) 47% 53%, rgba(255,255,255,.4) 53% 100%)}
.note-slip{max-width:300px; padding:15px 19px; background:#fffef9; font-size:1.04rem;
  clip-path:polygon(1% 3%, 98% 0, 100% 96%, 96% 100%, 2% 98%, 0 90%);
  margin-top:clamp(18px,3vw,30px);
  box-shadow:0 1px 2px rgba(50,30,8,.18), 0 10px 24px -8px rgba(60,38,12,.38)}

/* ── skills tags ── */
.tags{display:flex; flex-wrap:wrap; gap:16px 20px; justify-content:center; max-width:860px}
.tag{display:inline-flex; align-items:center; padding:11px 20px;
  background:linear-gradient(180deg,#e6cfa5,#dabf92); border:1px solid rgba(139,94,52,.28)}
.tag:nth-child(3n){margin-top:11px}
.tag:nth-child(4n){margin-top:-7px}
.tag:nth-child(5n){margin-top:6px}
.tag-name{font-size:13.5px; letter-spacing:.05em; color:#4c3a1e}

/* ── cases ── */
.cases-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));
  gap:clamp(24px,3vw,42px); align-items:start; justify-items:center}
.polaroid{width:min(420px,100%);
  background:#fdfdfb; padding:16px 16px 14px}
.live-badge{
  position:absolute; top:-13px; inset-inline-end:-10px; z-index:8;
  display:inline-flex; align-items:center; gap:7px; text-decoration:none;
  background:#fffdf6; border:2.2px solid var(--stamp); color:var(--stamp);
  border-radius:255px 15px 225px 15px/15px 225px 15px 255px;
  padding:4px 14px; font-size:1.08rem;
  box-shadow:2px 3px 0 rgba(43,43,51,.2);
}
.live-dot{width:9px; height:9px; border-radius:50%; background:#e74c3c;
  animation:pulse 2.4s infinite}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(231,76,60,.45)}
  70%{box-shadow:0 0 0 9px rgba(231,76,60,0)}
  100%{box-shadow:0 0 0 0 rgba(231,76,60,0)}
}
.photo{aspect-ratio:4/3; background:#f3ecd9; border:1px solid rgba(60,40,15,.14);
  position:relative; overflow:hidden}
.browser-doodle{position:absolute; inset:10px; background:#fff;
  border:2.2px solid var(--ink); border-radius:12px 5px 10px 6px/6px 10px 5px 12px;
  display:flex; flex-direction:column; box-shadow:1px 2px 0 rgba(43,43,51,.15)}
.bd-chrome{height:27px; display:flex; align-items:center; gap:5px; padding:0 9px;
  border-bottom:2.2px solid var(--ink); background:rgba(120,160,200,.2); flex:none}
.bd-dot{width:7px; height:7px; border-radius:50%; background:#b3aca0; flex:none}
.bd-dot:first-child{background:#d84433}
.bd-url{flex:1; min-width:0; font-size:9px; letter-spacing:.04em; border:1.5px solid rgba(43,43,51,.4);
  border-radius:99px; padding:1.5px 9px; color:#6d675c; background:#fff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:center}
.bd-shot{display:block; flex:1; min-height:0; width:100%;
  object-fit:cover; object-position:top center; background:#fff}
.caption{display:flex; flex-direction:column; gap:3px; padding:13px 5px 4px}
.cap-title{font-size:1.55rem; line-height:1.35}
.cap-meta{font-size:11px; letter-spacing:.14em; color:#7a7466}
.case-notes{
  list-style:none; width:94%; margin:-4px auto 0; padding:15px 17px;
  background:#fffef7; border:1.5px dashed rgba(43,43,51,.32);
  clip-path:polygon(1% 2%, 99% 0, 100% 97%, 97% 100%, 0 98%);
  transform:rotate(.7deg); position:relative; z-index:1;
  box-shadow:0 8px 20px -8px rgba(60,38,12,.35);
}
.case-notes li{padding:3.5px 0; font-size:1.02rem; line-height:1.7}
.case-notes li::before{content:'✓ '; color:#2e7d32; font-weight:700}
.case-slots{grid-column:1/-1; width:100%; display:flex; flex-wrap:wrap;
  gap:clamp(22px,3vw,40px); align-items:flex-start; justify-content:center}
.case-slot{
  width:min(280px,100%); min-height:200px; padding:30px 20px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  text-align:center; background:linear-gradient(180deg,#e3cba1,#d8bd90)}
.case-slot::before{content:''; position:absolute; top:15px; left:50%; transform:translateX(-50%) rotate(-2deg);
  width:17px; height:17px; border:2px solid rgba(90,60,25,.5); border-radius:50%;
  background:rgba(255,255,255,.3)}
.case-slot::after{content:''; position:absolute; top:19px; left:50%; transform:translateX(-50%) rotate(-2deg);
  width:48px; height:9px; border:1.5px solid rgba(90,60,25,.42); border-radius:99px}
.slot-no{font-size:12px; letter-spacing:.2em; color:#6b5228; margin-top:14px}
.slot-title{font-size:1.55rem; color:#4c3a1e}
.slot-status{font-size:10.5px; letter-spacing:.24em; color:rgba(76,58,30,.68)}
.slot-note{font-size:1rem; color:rgba(76,58,30,.85); margin-top:6px}
.slot-cta{
  display:inline-block; margin-top:12px; padding:.3em .95em;
  font-size:1.12rem; line-height:1.5; color:#fffdf6; background:var(--stamp);
  border-radius:255px 15px 225px 15px/15px 225px 15px 255px;
  text-decoration:none; box-shadow:2px 3px 0 rgba(43,43,51,.2);
  transition:transform .18s ease, box-shadow .18s ease;
}
.slot-cta:hover{transform:translateY(-3px) rotate(-1deg); box-shadow:3px 5px 0 rgba(43,43,51,.24)}
.case-slot-open{background:linear-gradient(180deg,#f0dcae,#e3caa0)}

/* ── contact ── */
.contact-grid{display:grid; grid-template-columns:repeat(12,1fr);
  gap:clamp(22px,3.5vw,36px); align-items:start}
.envelope-card{grid-column:span 4; width:100%;
  padding:32px 24px 26px; background:linear-gradient(180deg,#fdfcf7,#f6f1e3)}
.postage{position:absolute; top:13px; inset-inline-end:13px; width:46px; height:52px;
  border:2px dashed rgba(43,43,51,.45); display:grid; place-items:center;
  font-size:10px; color:#6d675c; transform:rotate(3deg);
  background:rgba(255,255,255,.65); border-radius:2px}
.postage::before{content:''; position:absolute; inset:4px;
  border:1.5px solid rgba(43,43,51,.3); border-radius:1px}
.env-label{display:block; font-size:1.35rem; margin-bottom:7px}
.env-mail{font-size:15px; color:#2456a6; text-decoration:none; word-break:break-all;
  text-decoration:underline; text-decoration-style:wavy; text-decoration-color:rgba(36,86,166,.5);
  text-decoration-thickness:1.5px; text-underline-offset:4px}
.env-mail:hover{text-decoration-color:#2456a6}
.env-lines{position:relative; height:48px; margin-top:20px; border-top:2px solid rgba(43,43,51,.28)}
.env-lines::before,.env-lines::after{content:''; position:absolute; top:-2px; width:54%; height:46px;
  border-top:2px solid rgba(43,43,51,.28); border-radius:50% 50% 0 0}
.env-lines::before{left:0; transform-origin:left top; transform:rotate(16deg)}
.env-lines::after{right:0; transform-origin:right top; transform:rotate(-16deg)}
.wa-card{grid-column:span 4; width:min(320px,100%); text-decoration:none;
  display:flex; flex-direction:column; gap:7px; padding:24px 22px}
.wa-card .hand{font-size:1.2rem}
.wa-card .ltr{font-size:15px; color:#1f8e70}
.soc-icon{width:26px; height:26px; color:#1f8e70}
.socials{grid-column:span 4; display:flex; flex-wrap:wrap; gap:14px 16px; align-items:center; justify-content:center}
.soc-tag{
  display:inline-flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink);
  background:#fffdf6; border:2.2px solid var(--ink);
  border-radius:225px 15px 255px 15px/15px 255px 15px 225px;
  padding:8px 16px; transform:rotate(var(--rot,0deg));
  box-shadow:2px 3px 0 rgba(43,43,51,.2);
  transition:transform .18s ease, box-shadow .18s ease;
}
.soc-tag:hover{transform:translateY(-3px) rotate(calc(var(--rot,0deg) * .4));
  box-shadow:3px 5px 0 rgba(43,43,51,.22)}
.soc-tag .typed{font-size:13px}
.soc-tag .soc-icon{width:19px; height:19px; color:var(--ink-soft)}
.torn-cta{grid-column:span 5; width:100%; margin-top:6px; padding:28px 25px;
  background:#fffef9;
  clip-path:polygon(2% 3%, 97% 0, 100% 5%, 99% 94%, 96% 100%, 3% 98%, 0 92%, 1% 6%)}
.torn-cta p{font-size:clamp(1.15rem,1.8vw,1.3rem); line-height:1.8; margin-bottom:16px}
.doodle-arrow{position:absolute; top:-44px; inset-inline-end:30px; width:80px;
  color:rgba(43,43,51,.55); transform:rotate(-6deg)}

.board-foot{text-align:center; position:relative; z-index:2}

/* ── responsive ── */
@media (max-width:1000px){
  .contact-grid{grid-template-columns:repeat(6,1fr)}
  .envelope-card,.wa-card,.socials{grid-column:span 6}
  .torn-cta{grid-column:span 6}
}
@media (max-width:880px){
  [data-reveal]{--rot:0deg !important}
  .cluster-hero{grid-template-columns:1fr}
  .hero-side{flex-direction:column; align-items:center}
  .cases-grid{grid-template-columns:1fr; justify-items:center}
  .case-slots{flex-direction:column; align-items:center}
  .cluster-head{justify-content:center; text-align:center}
  .doodle-arrow{display:none}
  .torn-cta{margin-top:0}
  .stamp-available{top:-10px; inset-inline-end:8px}
  .stamp-closed{bottom:8px; inset-inline-start:-4px}
  .tag:nth-child(n){margin-top:0}
  .tags{gap:14px}
}
@media (max-width:560px){
  .stats{gap:10px}
  .stat{width:104px; min-height:96px}
  .tape-head{padding:8px 16px}
  .hint-note{display:none}
  .cta-row{justify-content:center}
  .case-slot{width:min(300px,100%)}
}

/* ── reduced motion ── */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  [data-reveal]{opacity:1; transform:rotate(var(--rot,0deg)); transition:none}
  [data-reveal].revealed:hover{transform:rotate(var(--rot,0deg))}
  .stamp{opacity:1; transform:rotate(var(--srot,0deg)); animation:none}
  .live-dot{animation:none}
  *{transition:none !important}
}
