/* ==========================================================
   ewowlve — portfolio website
   Folder desktop + About. Frosted glass on soft lavender.
   ========================================================== */

:root {
  --ink: #1C1A22;
  --ink-2: #34313E;
  --muted: #45424F;
  --muted-2: #55525F;
  --bg: #E9EAF1;
  --orange: #FF4D1A;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --flap-path: path('M18 0 L100 0 C114 0 120 4 127 12 C134 19 140 24 154 24 L206 24 Q226 24 225 44 L221 92 Q219 112 199 112 L27 112 Q7 112 5 92 L0 20 Q-1 0 18 0 Z');
  --flap-fill: linear-gradient(180deg, rgba(206,198,240,.72) 0%, rgba(150,140,190,.58) 38%, rgba(70,62,88,.78) 72%, rgba(30,27,36,.92) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 20%, #F6F3FF 0, transparent 40%),
    radial-gradient(circle at 85% 75%, #E3E0F2 0, transparent 45%),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--ink); }
.page { padding: 14px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- glass ---------- */
.glass {
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(60,50,90,.12);
}

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 20px; padding: 8px 10px 8px 20px; border-radius: 24px;
}
.logo { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--orange); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.hb {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 15px var(--body); color: var(--ink); text-decoration: none;
}
.hb:hover { background: rgba(255,255,255,.7); }
.hb.dark { background: var(--ink); color: #fff; padding: 0 18px; margin-left: 6px; }

/* ---------- the desktop ---------- */
.desk { position: relative; height: 940px; margin-top: 14px; transition: height .6s ease; }
.wordmark {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  font: 800 clamp(120px, 20vw, 320px) var(--display); letter-spacing: -0.06em;
  color: rgba(60,50,90,.05); white-space: nowrap; pointer-events: none;
}
.hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); margin: 0;
  padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.6);
  font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.openbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 35;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}
.back-btn { min-height: 48px; padding: 0 20px; border-radius: 999px; font: 600 15px var(--body); color: var(--ink); cursor: pointer; }
.openbar-title { margin: 0; font: 800 clamp(26px, 3vw, 40px) var(--display); letter-spacing: -0.03em; }
.openbar-title small { font: 500 16px var(--body); color: var(--muted-2); }

/* ---------- folder ---------- */
.folder {
  position: absolute; width: 210px; height: 158px; padding: 0; border: 0; background: transparent; cursor: pointer;
  transition: left .6s cubic-bezier(.3,.8,.2,1), top .6s cubic-bezier(.3,.8,.2,1), transform .6s cubic-bezier(.3,.8,.2,1), opacity .4s ease, filter .4s ease;
}
.folder .back {
  position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(180deg, #46404F 0%, #25222B 100%);
  box-shadow: 0 24px 40px rgba(50,40,80,.28);
}
.folder .sheet {
  position: absolute; bottom: 26px; width: 96px; height: 118px; border-radius: 12px; background: #F7F7FB;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  transition: transform .35s cubic-bezier(.3,.8,.2,1), opacity .35s ease;
}
.folder .sheet i { position: absolute; left: 12px; right: 12px; height: 7px; border-radius: 4px; background: #C9C6DA; }
.folder .s1 { left: 16px; transform: rotate(-4deg); }
.folder .s2 { left: 66px; height: 108px; }
.folder .s3 { left: 104px; width: 84px; height: 100px; transform: rotate(5deg); }
.folder:hover .s1 { transform: translateY(-16px) rotate(-6deg); }
.folder:hover .s2 { transform: translateY(-22px) rotate(2deg); }
.folder:hover .s3 { transform: translateY(-12px) rotate(8deg); }
.folder.emptied .sheet { opacity: 0 !important; transform: translateY(28px) !important; }
.front {
  position: absolute; left: -8px; top: 52px; width: 226px; height: 112px;
  clip-path: var(--flap-path); background: var(--flap-fill);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.rim { position: absolute; left: -8px; top: 52px; width: 226px; height: 112px; overflow: visible; pointer-events: none; }
.folder .name {
  position: absolute; left: 50%; top: calc(100% + 16px); transform: translateX(-50%); white-space: nowrap;
  display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font: 600 14px var(--body); color: var(--ink);
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.folder .name .dot { width: 9px; height: 9px; border-radius: 50%; }
.folder .name .count { color: var(--muted-2); font-weight: 500; }
.folder:focus-visible { outline: 3px solid var(--orange); outline-offset: 10px; border-radius: 20px; }

/* glass flap drawn over the cards so they rise from behind it */
.frontflap {
  position: absolute; width: 210px; height: 158px; pointer-events: none; z-index: 24;
  transition: left .6s cubic-bezier(.3,.8,.2,1), top .6s cubic-bezier(.3,.8,.2,1), transform .6s cubic-bezier(.3,.8,.2,1);
}

/* ---------- cards (two-sided: paper back, design front) ---------- */
.card {
  position: absolute; transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transition: left .85s cubic-bezier(.3,.85,.25,1), top .85s cubic-bezier(.3,.85,.25,1), transform .85s cubic-bezier(.3,.85,.25,1), opacity .25s ease;
}
.card.rising {
  transition: left .7s cubic-bezier(.25,.9,.3,1.15), top .7s cubic-bezier(.25,.9,.3,1.15), transform .7s cubic-bezier(.25,.9,.3,1.15), opacity .2s ease;
}
.card:hover { z-index: 40 !important; }
.face {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: #fff;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 22px 44px rgba(50,40,80,.22);
}
.face.back { transform: rotateY(180deg); background: #F7F7FB; box-shadow: 0 10px 22px rgba(30,20,50,.25); }
.face.back i { position: absolute; left: 12%; height: 7%; border-radius: 999px; background: #C9C6DA; }
.face.back .mark { position: absolute; right: 10%; bottom: 10%; font: 800 18px var(--display); letter-spacing: -0.03em; color: #B9B5CC; }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face .art { position: absolute; inset: 0; }
.face .tag {
  position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; background: rgba(255,255,255,.85);
}
.cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px;
  border-radius: 14px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; transition: opacity .25s ease;
}
.card:hover .cap, .card:focus-within .cap { opacity: 1; }
.cap strong { font: 600 17px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cap span { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* ---------- about ---------- */
.about { position: relative; margin-top: 40px; padding: clamp(28px, 4vw, 56px) clamp(4px, 2vw, 32px) 24px; }
.wrap { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.intro { flex: 3 1 560px; min-width: 0; position: relative; padding-top: 34px; }
.intro .tab { position: absolute; top: 0; left: 0; width: 46%; height: 48px; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, rgba(196,186,232,.75), rgba(170,160,210,.7)); }
.intro .card-body {
  position: relative; border-radius: 0 28px 28px 28px; padding: clamp(28px, 4vw, 52px);
  background: linear-gradient(160deg, rgba(196,186,232,.72) 0%, rgba(240,238,250,.7) 55%, rgba(255,255,255,.65) 100%);
  display: flex; flex-direction: column; gap: 20px;
}
.eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #3E3A4A; }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.about h2 { margin: 0; font: 800 clamp(40px, 5.4vw, 80px)/.95 var(--display); letter-spacing: -0.045em; }
.about h2 em { font-style: normal; color: var(--orange); }
.lede { margin: 0; max-width: 60ch; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.stats { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }
.stat { border-radius: 24px; padding: 24px 26px; }
.stat b { display: block; font: 800 52px/1 var(--display); letter-spacing: -0.04em; }
.stat span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.stat.dark { background: rgba(28,26,34,.86); border-color: rgba(255,255,255,.25); color: #fff; }
.stat.dark span { color: #D8D5E4; }
.about h3 { margin: 24px 0 0; font: 800 clamp(30px, 3.4vw, 48px) var(--display); letter-spacing: -0.04em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.step .ico { position: relative; width: 58px; height: 44px; }
.step .ico .b { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(180deg, #46404F, #25222B); }
.step .ico .p { position: absolute; left: 10px; width: 30px; height: 30px; border-radius: 6px; background: #F7F7FB; }
.step .ico .f {
  position: absolute; left: -3px; top: 16px; width: 64px; height: 30px;
  clip-path: path('M5 0 L29 0 C33 0 35 1 36 3 C38 5 40 6 43 6 L59 6 Q64 6 64 11 L63 25 Q63 30 58 30 L6 30 Q1 30 1 25 L0 5 Q0 0 5 0 Z');
  background: linear-gradient(180deg, rgba(206,198,240,.85), rgba(30,27,36,.92));
}
.step .num { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.step .t { margin: 0; font: 600 26px var(--display); letter-spacing: -0.02em; }
.step .d { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.clients { flex: 2 1 520px; min-width: 0; border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.clients p { margin: 0; font: 600 24px var(--display); letter-spacing: -0.02em; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.logo-grid div { aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; border: 1px solid #fff; box-shadow: 0 8px 18px rgba(50,40,80,.12); }
.logo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact {
  flex: 1 1 320px; border-radius: 28px; padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(160deg, #3A3444 0%, #1C1A22 100%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 24px 50px rgba(50,40,80,.25);
  display: flex; flex-direction: column; gap: 16px;
}
.contact .big { margin: 0; font: 800 36px/1 var(--display); letter-spacing: -0.04em; }
.contact .small { margin: 0; font-size: 15px; line-height: 1.6; color: #D8D5E4; }
.contact .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.pill { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.pill.orange { background: var(--orange); color: var(--ink); }
.pill.line { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.foot { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted-2); }

@media (prefers-reduced-motion: reduce) {
  .folder, .card, .card.rising, .frontflap, .desk { transition-duration: .01ms !important; }
}
