/* ============================================================
   GABRIELLE BENKEMOUN — GB/OS
   dark y2k desktop · serif display · soft pink accents
   ============================================================ */

:root {
  --bg: #0b0a0d;
  --bg-2: #131016;
  --ink: #f2eef1;
  --dim: #a09aa4;
  --pink: #ff9fc2;
  --hot: #ff5c99;
  --hairline: rgba(255, 255, 255, 0.15);
  --hairline-soft: rgba(255, 255, 255, 0.08);
  --menubar-h: 42px;
  --font-ui: "Helvetica Neue", Helvetica, Arial, -apple-system, sans-serif;
  --font-px: "Silkscreen", monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--hot); color: #fff; }

button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* film grain + soft glow */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(255, 92, 153, 0.10), transparent 55%),
    radial-gradient(80% 60% at 80% -10%, rgba(140, 120, 255, 0.05), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: -50%; z-index: 2;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-2%,3%); }
  40% { transform: translate(3%,-2%); } 60% { transform: translate(-3%,-3%); }
  80% { transform: translate(2%,2%); }
}

/* ---------- boot ---------- */
#boot {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  transition: opacity .5s ease;
}
#boot.done { opacity: 0; pointer-events: none; }
.boot-heart {
  width: 30px; height: 27px;
  background: var(--hot);
  clip-path: polygon(12.5% 0, 37.5% 0, 37.5% 12.5%, 62.5% 12.5%, 62.5% 0, 87.5% 0, 87.5% 12.5%, 100% 12.5%, 100% 50%, 87.5% 50%, 87.5% 62.5%, 75% 62.5%, 75% 75%, 62.5% 75%, 62.5% 87.5%, 37.5% 87.5%, 37.5% 75%, 25% 75%, 25% 62.5%, 12.5% 62.5%, 12.5% 50%, 0 50%, 0 12.5%, 12.5% 12.5%);
  animation: beat 1s ease infinite;
}
@keyframes beat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.18); } }
.boot-name { font-family: var(--font-px); font-size: 17px; letter-spacing: .3em; }
.boot-bar {
  width: 170px; height: 8px;
  border: 1px solid var(--hairline);
  border-radius: 99px; overflow: hidden;
}
.boot-bar i { display: block; height: 100%; width: 0; background: var(--pink); animation: fill 1.1s ease forwards; }
@keyframes fill { to { width: 100%; } }
.boot-sub { font-size: 11px; letter-spacing: .3em; color: var(--dim); text-transform: uppercase; }

/* ---------- menu bar ---------- */
#menubar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--menubar-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 20px;
  background: rgba(14, 12, 16, 0.66);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--hairline-soft);
  user-select: none;
}
.mb-os { font-family: var(--font-px); font-size: 12px; color: var(--pink); letter-spacing: .1em; }
.mb-name { font-size: 14px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.mb-spacer { flex: 1; }
.mb-link {
  font-size: 13.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; opacity: .85;
}
.mb-link:hover { opacity: 1; color: var(--pink); }
.mb-clock { font-size: 12.5px; letter-spacing: .12em; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ---------- desktop ---------- */
#desktop { position: fixed; inset: var(--menubar-h) 0 0 0; z-index: 3; }

.spark {
  position: absolute; color: var(--pink); opacity: 0;
  font-size: 12px; pointer-events: none;
  animation: twinkle 7s ease-in-out infinite;
}
.s1 { top: 18%; left: 14%; animation-delay: 0s; }
.s2 { top: 30%; right: 12%; animation-delay: 2.4s; font-size: 10px; }
.s3 { bottom: 24%; left: 26%; animation-delay: 4.8s; font-size: 9px; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.6) rotate(0deg); } 50% { opacity: .8; transform: scale(1) rotate(90deg); } }

.icons {
  position: absolute; top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: flex-end; gap: 74px;
}
.icon {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 10px; border-radius: 12px;
  transition: transform .15s ease;
}
.icon:hover { transform: translateY(-4px); }
.icon:active { transform: scale(.97); }
.icon:focus-visible { outline: 1px dashed var(--pink); outline-offset: 4px; }
.icon * { pointer-events: none; }
.ic-art { display: block; filter: drop-shadow(0 12px 28px rgba(0,0,0,.6)); }
.icon svg { width: 116px; height: auto; display: block; }
.icon-me img {
  width: 150px; height: auto; display: block;
  filter: drop-shadow(0 0 26px rgba(255, 92, 153, 0.30)) drop-shadow(0 12px 24px rgba(0,0,0,.6));
  transition: filter .25s ease;
}
.icon-me:hover img { filter: drop-shadow(0 0 36px rgba(255, 92, 153, 0.5)) drop-shadow(0 12px 24px rgba(0,0,0,.6)); }
.label {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0,0,0,.6);
  border: 1px solid var(--hairline-soft);
  padding: 6px 12px; border-radius: 6px;
}
.icon.selected .label, .icon:hover .label { background: var(--hot); border-color: var(--hot); color: #fff; }

/* click hearts */
.heart-pop {
  position: absolute; z-index: 4; pointer-events: none;
  width: 13px; height: 12px; background: var(--hot);
  clip-path: polygon(12.5% 0, 37.5% 0, 37.5% 12.5%, 62.5% 12.5%, 62.5% 0, 87.5% 0, 87.5% 12.5%, 100% 12.5%, 100% 50%, 87.5% 50%, 87.5% 62.5%, 75% 62.5%, 75% 75%, 62.5% 75%, 62.5% 87.5%, 37.5% 87.5%, 37.5% 75%, 25% 75%, 25% 62.5%, 12.5% 62.5%, 12.5% 50%, 0 50%, 0 12.5%, 12.5% 12.5%);
  animation: rise 1s ease-out forwards;
}
@keyframes rise {
  from { opacity: .95; transform: translateY(0) scale(.7); }
  to   { opacity: 0; transform: translateY(-70px) scale(1.25); }
}

/* ---------- ticker ---------- */
#ticker {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--hairline-soft);
  background: rgba(10, 9, 12, .5);
  overflow: hidden;
  padding: 11px 0;
}
.tick-track {
  display: inline-flex; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: .22em;
  color: var(--dim); text-transform: uppercase;
  animation: tick 46s linear infinite;
}
.tick-track span { padding-right: 3.2em; }
.tick-track .hearts { color: var(--hot); }
@keyframes tick { to { transform: translateX(-50%); } }
#ticker:hover .tick-track { animation-play-state: paused; }

/* ---------- windows ---------- */
.window {
  position: absolute; z-index: 10;
  display: flex; flex-direction: column;
  min-width: 320px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 4px 16px rgba(0, 0, 0, .5);
  overflow: hidden;
  animation: pop .2s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

.titlebar {
  flex: none; height: 42px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: linear-gradient(rgba(255,255,255,.09), rgba(255,255,255,.02));
  border-bottom: 1px solid var(--hairline-soft);
  cursor: grab; user-select: none; touch-action: none;
}
.titlebar:active { cursor: grabbing; }
.wclose {
  width: 16px; height: 16px; flex: none;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,.35);
  position: relative;
}
.wclose::after {
  content: "×"; position: absolute; inset: 0;
  font-size: 13px; line-height: 15px; text-align: center;
  color: rgba(0,0,0,.55); opacity: 0;
}
.wclose:hover::after { opacity: 1; }
.wtitle {
  font-size: 12px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim);
  flex: 1; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.titlebar .pad { width: 16px; flex: none; }

.wbody { flex: 1; overflow: auto; overscroll-behavior: contain; }
.wbody::-webkit-scrollbar { width: 9px; }
.wbody::-webkit-scrollbar-thumb { background: rgba(255,159,194,.25); border-radius: 99px; }
.wbody::-webkit-scrollbar-thumb:hover { background: rgba(255,159,194,.5); }

/* ---------- WORK window ---------- */
.work-head { padding: 34px 34px 8px; }
.work-title {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(38px, 4.8vw, 54px); line-height: 1;
  letter-spacing: .01em;
}
.work-title em { color: var(--pink); font-style: italic; }
.work-note {
  margin-top: 12px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
}
.work-note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.work-note a:hover { color: var(--pink); border-color: var(--pink); }

.filters {
  display: flex; flex-wrap: wrap; gap: 9px;
  padding: 22px 34px 18px;
  position: sticky; top: 0;
  background: linear-gradient(var(--bg-2) 78%, transparent);
  z-index: 2;
}
.chip {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  color: var(--dim);
  transition: all .15s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.on { background: var(--hot); border-color: var(--hot); color: #fff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 16px;
  padding: 4px 34px 30px;
}
.card {
  display: block; text-decoration: none;
  border-radius: 10px;
}
.card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: #1b1720;
  border: 1px solid var(--hairline-soft);
}
.card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease, opacity .3s ease;
}
.card:hover img { transform: scale(1.04); }
.card .ct {
  margin-top: 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  line-height: 1.35;
}
.card:hover .ct { color: var(--pink); }
.card .cm {
  margin-top: 3px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim);
}
.work-foot {
  padding: 8px 34px 30px;
  font-size: 13px; color: var(--dim); letter-spacing: .03em; line-height: 1.65;
}
.work-foot b { color: var(--ink); font-weight: 600; }

/* ---------- ABOUT window ---------- */
.about-grid {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 34px;
}
.about-photo { position: relative; align-self: start; }
.about-photo img {
  width: 100%; display: block;
  filter: drop-shadow(0 0 28px rgba(255, 92, 153, .22));
}
.about-photo .bow {
  position: absolute; top: -10px; right: 14px;
  width: 30px; height: auto;
  transform: rotate(12deg);
}
.about-txt h1 {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 38px; line-height: 1.05; letter-spacing: .01em;
}
.about-role {
  margin: 10px 0 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--pink);
}
.about-txt p { font-size: 15px; line-height: 1.7; color: #d5cfd4; margin-bottom: 13px; }
.about-txt p b { color: var(--ink); font-weight: 600; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 18px 0 22px;
}
.fact {
  font-size: 11.5px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
  border: 1px solid var(--hairline);
  padding: 7px 13px; border-radius: 99px;
}
.about-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- CONTACT window ---------- */
.contact-body { padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.contact-kicker { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.contact-addr {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px); word-break: break-all;
}
.contact-note { font-size: 14.5px; line-height: 1.65; color: #d5cfd4; }

/* ---------- WORK page (real page, not a window) ---------- */
body.workpage { overflow: hidden auto; }
body.workpage::before { position: fixed; }

.mb-back {
  font-size: 17px; text-decoration: none; opacity: .8;
  padding: 2px 6px; margin-left: -6px;
  transition: opacity .15s ease, transform .15s ease;
}
.mb-back:hover { opacity: 1; color: var(--pink); transform: translateX(-2px); }
.mb-home { text-decoration: none; }
.mb-home:hover { color: var(--pink); }

.work-page {
  position: relative; z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--menubar-h) + 54px) 40px 60px;
}
.wp-head { margin-bottom: 6px; }
.wp-title {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(52px, 7.5vw, 96px); line-height: .95;
  letter-spacing: .01em;
}
.wp-title em { color: var(--pink); font-style: italic; }
.wp-note {
  margin-top: 16px;
  font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
}
.wp-note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.wp-note a:hover { color: var(--pink); border-color: var(--pink); }

.wp-filters {
  position: sticky; top: var(--menubar-h);
  padding: 22px 0 20px;
  background: linear-gradient(var(--bg) 72%, transparent);
}
.wp-grid {
  padding: 8px 0 44px;
  gap: 30px 22px;
}
.wp-grid .card {
  opacity: 0;
  animation: cardin .5s ease forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes cardin {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.wp-grid .ct { font-size: 14.5px; }
.wp-grid .cm { font-size: 12px; }

.wp-foot {
  border-top: 1px solid var(--hairline-soft);
  padding: 30px 0 10px;
  font-size: 14px; color: var(--dim); line-height: 1.7;
  max-width: 62ch;
}
.wp-foot b { color: var(--ink); font-weight: 600; }
.wp-foot .hearts { color: var(--hot); }
.wp-foot .btn { margin-top: 18px; }
.wp-credit { margin-top: 6px; font-size: 12.5px; letter-spacing: .04em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 99px;
  background: var(--hot); color: #fff;
  border: 1px solid var(--hot);
  font-size: 13.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none;
  transition: transform .14s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(255, 92, 153, .35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: none; border-color: var(--hairline); color: var(--ink); }
.btn.ghost:hover { border-color: var(--pink); color: var(--pink); box-shadow: none; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .icons {
    top: 30px; left: 22px; transform: none;
    flex-direction: column; align-items: flex-start; gap: 30px;
  }
  .icon { flex-direction: row; gap: 20px; padding: 6px; }
  .icon svg { width: 84px; }
  .icon-me img { width: 96px; }
  .label { font-size: 13.5px; }

  .window {
    inset: var(--menubar-h) 0 0 0 !important;
    width: auto !important; height: auto !important;
    border-radius: 0; border: 0;
    animation: sheet .28s ease;
  }
  @keyframes sheet { from { transform: translateY(36px); opacity: 0; } }
  .titlebar { height: 50px; cursor: default; }
  .wclose { width: 20px; height: 20px; }
  .wclose::after { font-size: 15px; line-height: 19px; opacity: 1; }

  .work-head { padding: 26px 20px 4px; }
  .filters { padding: 18px 20px 14px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 4px 20px 24px; }
  .work-foot { padding: 6px 20px 30px; }

  .about-grid { grid-template-columns: 1fr; padding: 26px 20px 32px; }
  .about-photo { width: 180px; }
  .about-txt h1 { font-size: 32px; }
  .contact-body { padding: 26px 20px; }

  .mb-name { display: none; }
  .mb-clock { display: none; }
  #menubar { gap: 16px; }
  .s2, .s3 { display: none; }

  .work-page { padding: calc(var(--menubar-h) + 30px) 20px 44px; }
  .wp-filters { padding: 18px 0 14px; }
  .wp-grid { padding: 4px 0 30px; gap: 22px 12px; }
}

@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .tick-track { animation: none; }
}
