/* =========================================================
   BESA — PERSONAL PORTFOLIO
   Modern / Editorial / Glassmorphism
   ========================================================= */

:root {
  --bg: #08080c;
  --bg-soft: #101016;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f1eb;
  --muted: #a6a2ac;
  --purple: #a88bff;
  --blue: #64b9ff;
  --pink: #ff7eb6;
  --gold: #e7c16f;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --page: min(1200px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(119, 92, 255, 0.10), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--purple);
  color: #08080c;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

.orb-one {
  top: 10%;
  right: -10rem;
  background: var(--purple);
}

.orb-two {
  top: 58%;
  left: -12rem;
  background: var(--blue);
}

.orb-three {
  bottom: -12rem;
  right: 15%;
  background: var(--pink);
}

/* ---------- Header ---------- */

.site-header {
  width: var(--page);
  height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 20;
}

.brand,
.site-header .mini-cta,
.nav a {
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 18px rgba(168, 139, 255, 0.75);
}

.nav {
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(15, 15, 21, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav a {
  padding: 9px 15px;
  color: #c8c4ce;
  border-radius: 999px;
  transition: 0.3s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.mini-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: 0.3s ease;
}

.mini-cta:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ---------- General ---------- */

.section {
  width: var(--page);
  margin: 0 auto;
}

.serif {
  font-family: "Playfair Display", serif;
}

.italic {
  font-style: italic;
  font-weight: 600;
}

.tiny-label,
.eyebrow,
.section-label,
.project-type {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #d2ced8;
}

.section-label span {
  color: #797582;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding: 58px 0 100px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #c5c1cb;
  margin-bottom: 29px;
}

.eyebrow-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3.6rem, 6.4vw, 7.1rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 500;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: #cbbdff;
  letter-spacing: -0.045em;
}

.hero-text {
  max-width: 620px;
  margin-top: 33px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.9;
}

.hero-actions {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.primary-btn {
  min-width: 190px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 10px 10px 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, #f7f4ed, #dcd6eb);
  color: #0d0d12;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 12px 45px rgba(161, 140, 255, 0.10);
  transition: 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 55px rgba(161, 140, 255, 0.18);
}

.btn-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111116;
  color: #fff;
  font-size: 1rem;
}

.text-link,
.inline-arrow,
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: #d4d0d9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 4px;
  transition: 0.25s ease;
}

.text-link:hover,
.inline-arrow:hover,
.github-link:hover {
  color: white;
  border-color: white;
  gap: 14px;
}

.hero-meta {
  margin-top: 72px;
  display: flex;
  gap: clamp(28px, 5vw, 60px);
}

.hero-meta > div {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.meta-number {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #d9d2ff;
}

.meta-label {
  color: #85818d;
  font-size: 0.7rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  min-height: 650px;
  position: relative;
  display: grid;
  place-items: center;
}

.visual-card {
  width: min(100%, 465px);
  aspect-ratio: 0.72;
  position: relative;
  padding: 24px;
  overflow: hidden;
  border-radius: 220px 220px var(--radius-xl) var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(11, 11, 16, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 50px 120px rgba(0,0,0,0.42);
  backdrop-filter: blur(22px);
}

.visual-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(133, 106, 255, 0.30);
  filter: blur(70px);
}

.visual-top,
.visual-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #b8b3c0;
}

.portrait-frame {
  position: absolute;
  inset: 94px 34px 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 180px 180px 24px 24px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.16), transparent 16%),
    radial-gradient(circle at 50% 55%, #4b3e73, #16121e 55%, #0b0a0e 75%);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 82%;
  bottom: -20%;
  border-radius: 50% 50% 18% 18%;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(81,61,127,.25));
  border: 1px solid rgba(255,255,255,.08);
  transform: perspective(500px) rotateX(-5deg);
}

.monogram {
  position: relative;
  z-index: 2;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 11rem;
  line-height: 1;
  color: rgba(245, 238, 255, 0.88);
  text-shadow:
    0 0 40px rgba(191, 166, 255, .22),
    0 16px 40px rgba(0,0,0,.4);
  transform: translateY(-10px);
}

.portrait-glow {
  position: absolute;
  width: 67%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(191,169,255,.65), rgba(76,154,255,.12));
  filter: blur(28px);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
}

.orbit-one {
  width: 115%;
  aspect-ratio: 1;
  transform: rotate(24deg) scaleY(.37);
}

.orbit-two {
  width: 88%;
  aspect-ratio: 1;
  transform: rotate(-36deg) scaleY(.27);
  border-color: rgba(204,183,255,.24);
}

.visual-bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  align-items: flex-end;
  letter-spacing: 0;
}

.visual-bottom p {
  margin-bottom: 4px;
  color: #77727f;
  font-size: 0.55rem;
  letter-spacing: 0.17em;
}

.visual-bottom strong {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9b4c0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #89ffb5;
  box-shadow: 0 0 14px rgba(137, 255, 181, 0.55);
}

.floating-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(19, 18, 27, 0.78);
  box-shadow: 0 20px 45px rgba(0,0,0,.3);
  backdrop-filter: blur(15px);
}

.floating-note small {
  display: block;
  color: #7e7986;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.floating-note strong {
  font-size: 0.76rem;
}

.note-icon {
  font-size: 1.4rem;
  color: #cab9ff;
}

.code-bracket {
  font-family: monospace;
  color: #8bc6ff;
  font-weight: bold;
}

.note-one {
  left: -35px;
  top: 24%;
  animation: floaty 5s ease-in-out infinite;
}

.note-two {
  right: -45px;
  bottom: 20%;
  animation: floaty 5s ease-in-out infinite 1.3s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Marquee ---------- */

.marquee {
  width: 100%;
  overflow: hidden;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  animation: marquee 26s linear infinite;
}

.marquee span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #a7a2ae;
}

.marquee i {
  color: #c0adff;
  font-style: normal;
  opacity: .65;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */

.about {
  padding: 145px 0 120px;
}

.about-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 10vw;
}

.tiny-label {
  color: #7f7a86;
  margin-bottom: 17px;
}

.about-title h2,
.projects-head h2,
.skills-copy h2,
.contact-card h2 {
  font-size: clamp(2.5rem, 4.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.about-title h2 span,
.projects-head h2 span,
.skills-copy h2 span,
.contact-card h2 span {
  color: #c9baff;
}

.about-copy {
  padding-top: 31px;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.about-copy p + p {
  margin-top: 22px;
}

.inline-arrow {
  margin-top: 35px;
}



/* ---------- PERSONAL NOTES ---------- */
.personal-notes {
  padding: 40px 0 130px;
}

.personal-head {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 7vw;
  align-items: end;
}

.personal-head h2 {
  max-width: 780px;
  font-size: clamp(2.7rem, 4.8vw, 5.6rem);
  line-height: 1.01;
  letter-spacing: -.055em;
  font-weight: 500;
}

.personal-head h2 span { color: #c9baff; }

.personal-head > p:last-child {
  max-width: 470px;
  justify-self: end;
  color: var(--muted);
  line-height: 1.85;
}

.personal-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.personal-card {
  min-height: 310px;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 15%, rgba(169,139,255,.11), transparent 30%),
    rgba(255,255,255,.025);
  transition: .35s ease;
}

.personal-card:nth-child(2) {
  background:
    radial-gradient(circle at 85% 10%, rgba(100,185,255,.10), transparent 30%),
    rgba(255,255,255,.025);
}

.personal-card:nth-child(3) {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,126,182,.09), transparent 30%),
    rgba(255,255,255,.025);
}

.personal-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255,255,255,.20);
}

.personal-card-top {
  display: flex;
  justify-content: space-between;
  color: #716c78;
  font-size: .62rem;
  letter-spacing: .14em;
}

.personal-card h3 {
  max-width: 280px;
  margin-top: 54px;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  line-height: 1.16;
  font-weight: 600;
}

.personal-card p {
  max-width: 310px;
  margin-top: 16px;
  color: #8e8894;
  font-size: .86rem;
  line-height: 1.75;
}

.personal-symbol {
  position: absolute;
  right: 24px;
  bottom: 15px;
  color: rgba(203,186,255,.13);
  font-family: "Playfair Display", serif;
  font-size: 6.5rem;
  line-height: 1;
}

.art-teal {
  background:
    radial-gradient(circle at 50% 35%, rgba(77,218,200,.25), transparent 25%),
    linear-gradient(145deg, #102320, #101619 68%, #0a0c0d);
}

.thread-art {
  width: 78%;
  height: 70%;
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  align-items: center;
  gap: 18px;
}

.thread-core {
  height: 150px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(149,255,231,.28);
  border-radius: 28px;
  background: rgba(6,17,17,.58);
  box-shadow: 0 30px 70px rgba(0,0,0,.35), inset 0 0 35px rgba(91,255,223,.04);
}

.thread-core small,
.thread-core em {
  color: #76a79e;
  font-size: .56rem;
  font-style: normal;
  letter-spacing: .18em;
}

.thread-core strong {
  margin: 4px 0;
  color: #c4fff3;
  font-family: monospace;
  font-size: 1.05rem;
}

.thread-line {
  display: grid;
  gap: 17px;
}

.thread-line span {
  display: block;
  height: 1px;
  position: relative;
  background: linear-gradient(90deg, transparent, rgba(131,255,230,.42));
}

.thread-line span::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  right: -2px;
  top: -3px;
  border-radius: 50%;
  background: #89e7d4;
  box-shadow: 0 0 16px rgba(137,231,212,.5);
}

.line-b span {
  background: linear-gradient(90deg, rgba(131,255,230,.42), transparent);
}
.line-b span::after { right: auto; left: -2px; }

@media (max-width: 900px) {
  .personal-head { grid-template-columns: 1fr; gap: 28px; }
  .personal-head > p:last-child { justify-self: start; }
  .personal-grid { grid-template-columns: 1fr; }
  .personal-card { min-height: 250px; }
}

@media (max-width: 680px) {
  .personal-notes { padding: 10px 0 90px; }
  .thread-art { width: 90%; grid-template-columns: 1fr 105px 1fr; gap: 8px; }
  .thread-core { height: 105px; border-radius: 22px; }
}

/* ---------- Projects ---------- */

.projects {
  padding: 120px 0 145px;
}

.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 55px;
}

.projects-head .section-label {
  margin-bottom: 25px;
}

.projects-head > p {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 5px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.project-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.028);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: .35s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255,255,255,.19);
  background: rgba(255,255,255,.04);
}

.project-card.featured {
  grid-column: span 2;
}

.project-card-top {
  height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8a8590;
  padding: 0 5px;
}

.project-index {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #c8bfd4;
}

.project-art {
  height: 350px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
}

.featured .project-art {
  height: 460px;
}

.art-blue {
  background:
    radial-gradient(circle at 30% 20%, rgba(124,183,255,.5), transparent 30%),
    linear-gradient(135deg, #171a27, #1c2433 47%, #0d0e15);
}

.art-purple {
  background:
    radial-gradient(circle at 70% 28%, rgba(185,127,255,.45), transparent 27%),
    linear-gradient(145deg, #21152d, #17131f 60%, #0d0b11);
}

.art-gold {
  background:
    radial-gradient(circle at 50% 40%, rgba(231,193,111,.34), transparent 25%),
    linear-gradient(145deg, #211d16, #11100f 65%, #0b0a09);
}

.mock-window {
  width: 76%;
  height: 66%;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(9,13,21,.75);
  box-shadow:
    0 35px 80px rgba(0,0,0,.45),
    0 0 0 10px rgba(255,255,255,.025);
  transform: perspective(1000px) rotateX(4deg) rotateY(-8deg);
}

.mock-toolbar {
  height: 38px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mock-toolbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}

.mock-content {
  height: calc(100% - 38px);
  display: grid;
  grid-template-columns: 23% 1fr;
}

.mock-sidebar {
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}

.mock-main {
  padding: 25px;
}

.mock-heading {
  width: 38%;
  height: 10px;
  border-radius: 10px;
  background: rgba(146,190,255,.65);
  margin-bottom: 30px;
}

.mock-row {
  width: 90%;
  height: 7px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  margin: 12px 0;
}

.mock-row.short {
  width: 60%;
}

.mock-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.mock-grid span {
  height: 38px;
  border-radius: 8px;
  background: rgba(116,170,255,.12);
  border: 1px solid rgba(126,180,255,.12);
}

.browser-mock {
  width: 82%;
  height: 63%;
  overflow: hidden;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(12,8,16,.82);
  box-shadow: 0 35px 70px rgba(0,0,0,.42);
  transform: rotate(-2deg);
}

.browser-top {
  height: 28px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.browser-body {
  height: calc(100% - 28px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  padding: 24px;
  gap: 22px;
}

.browser-copy span {
  display: block;
  width: 42%;
  height: 5px;
  background: #bc8eff;
  border-radius: 5px;
  margin-bottom: 14px;
}

.browser-copy strong {
  display: block;
  width: 90%;
  height: 19px;
  background: rgba(255,255,255,.75);
  border-radius: 4px;
  margin-bottom: 9px;
}

.browser-copy p {
  width: 75%;
  height: 6px;
  background: rgba(255,255,255,.14);
  border-radius: 4px;
}

.browser-copy button {
  width: 38%;
  height: 19px;
  border: 0;
  border-radius: 999px;
  margin-top: 20px;
  background: rgba(188,142,255,.65);
}

.browser-shape {
  width: 100%;
  aspect-ratio: .8;
  border-radius: 45% 45% 12px 12px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.21), transparent 14%),
    linear-gradient(145deg, rgba(206,158,255,.45), rgba(91,69,126,.15));
}

.chip {
  width: 190px;
  height: 190px;
  padding: 22px;
  position: relative;
  border-radius: 34px;
  background: #17130f;
  border: 2px solid rgba(231,193,111,.45);
  box-shadow:
    0 0 0 10px rgba(231,193,111,.04),
    0 30px 70px rgba(0,0,0,.45),
    inset 0 0 34px rgba(231,193,111,.06);
}

.chip::before,
.chip::after {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  height: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 13px,
      rgba(231,193,111,.45) 13px 24px,
      transparent 24px 34px
    );
}

.chip::before {
  top: 35px;
}

.chip::after {
  bottom: 35px;
}

.chip-core {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(231,193,111,.28);
  border-radius: 22px;
}

.chip-core small {
  color: #9c8250;
  font-size: .65rem;
  letter-spacing: .22em;
}

.chip-core strong {
  margin-top: 4px;
  color: #e8d3a2;
  font-family: monospace;
  font-size: 1.13rem;
}

.project-info {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding: 26px 4px 8px;
}

.project-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-info p {
  color: #938e9b;
  max-width: 520px;
  font-size: .9rem;
  line-height: 1.7;
}

.tags {
  min-width: max-content;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a7a1ae;
  font-size: .61rem;
  letter-spacing: .05em;
}

/* ---------- Skills ---------- */

.skills {
  padding: 125px 0 155px;
}

.skills-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 9vw;
}

.skills-copy > p:last-child {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 26px;
}

.skill-list {
  border-top: 1px solid var(--line);
}

.skill-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  transition: .25s ease;
}

.skill-row:hover {
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(168,139,255,.05), transparent);
}

.skill-row span {
  color: #67636e;
  font-size: .65rem;
}

.skill-row strong {
  font-size: 1.02rem;
  font-weight: 500;
}

.skill-row em {
  color: #77727f;
  font-size: .72rem;
  font-style: normal;
}

/* ---------- Contact ---------- */

.contact {
  padding: 80px 0 120px;
}

.contact-card {
  min-height: 540px;
  position: relative;
  overflow: hidden;
  padding: clamp(45px, 8vw, 95px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.16), transparent 22%),
    linear-gradient(135deg, #b7a4ff 0%, #8171d8 42%, #6458ad 100%);
  color: #0d0b12;
  box-shadow: 0 30px 100px rgba(111,88,196,.22);
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -80px;
  bottom: -120px;
  border-radius: 50%;
  border: 1px solid rgba(13,11,18,.15);
  box-shadow:
    0 0 0 48px rgba(13,11,18,.035),
    0 0 0 96px rgba(13,11,18,.025);
}

.contact-card .tiny-label {
  color: rgba(13,11,18,.55);
}

.contact-card h2 {
  max-width: 860px;
}

.contact-card h2 span {
  color: rgba(13,11,18,.72);
}

.contact-sub {
  max-width: 610px;
  margin-top: 28px;
  color: rgba(13,11,18,.69);
  line-height: 1.8;
}

.contact-actions {
  margin-top: 38px;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.light-btn {
  background: #0e0d13;
  color: #f6f2ff;
  border-color: #0e0d13;
}

.light-btn .btn-icon {
  background: rgba(255,255,255,.10);
}

.github-link {
  color: #15121a;
  border-color: rgba(13,11,18,.35);
}

.github-link:hover {
  color: #08060c;
  border-color: #08060c;
}

.contact-decoration {
  position: absolute;
  right: 8%;
  top: 16%;
  color: rgba(16,12,22,.18);
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 1;
  transform: rotate(12deg);
}

/* ---------- Footer ---------- */

footer {
  width: var(--page);
  min-height: 110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #77727f;
  font-size: .72rem;
}

footer > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d4ced9;
}

footer p {
  text-align: center;
}

footer > a {
  justify-self: end;
  display: inline-flex;
  gap: 8px;
  transition: .2s ease;
}

footer > a:hover {
  color: white;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  :root {
    --page: min(100% - 36px, 900px);
  }

  .nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 80px;
  }

  .hero h1 {
    max-width: 850px;
  }

  .hero-visual {
    min-height: 650px;
  }

  .note-one {
    left: 4%;
  }

  .note-two {
    right: 2%;
  }

  .about-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-copy {
    padding-top: 0;
  }

  .projects-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .featured .project-art,
  .project-art {
    height: 410px;
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100% - 28px);
  }

  .site-header {
    height: 74px;
  }

  .mini-cta {
    font-size: .72rem !important;
  }

  .hero {
    padding: 58px 0 80px;
    gap: 25px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
    line-height: .96;
  }

  .hero-text {
    font-size: .95rem;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 50px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .visual-card {
    width: min(100%, 355px);
  }

  .portrait-frame {
    inset: 82px 25px 80px;
  }

  .monogram {
    font-size: 8rem;
  }

  .floating-note {
    padding: 10px 12px;
  }

  .note-one {
    left: -3px;
    top: 22%;
  }

  .note-two {
    right: -5px;
    bottom: 16%;
  }

  .about,
  .projects,
  .skills {
    padding: 90px 0;
  }

  .projects-head {
    margin-bottom: 35px;
  }

  .featured .project-art,
  .project-art {
    height: 310px;
  }

  .project-info {
    flex-direction: column;
    gap: 20px;
  }

  .tags {
    justify-content: flex-start;
  }

  .mock-window {
    width: 90%;
    height: 66%;
  }

  .browser-mock {
    width: 90%;
    height: 64%;
  }

  .chip {
    transform: scale(.78);
  }

  .skill-row {
    grid-template-columns: 35px 1fr;
    gap: 12px;
  }

  .skill-row em {
    display: none;
  }

  .contact {
    padding: 50px 0 80px;
  }

  .contact-card {
    min-height: 500px;
    padding: 42px 28px;
  }

  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-decoration {
    top: auto;
    bottom: 5%;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 25px 0;
  }

  footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track,
  .note-one,
  .note-two {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== JOURNAL / BLOG ===== */
.nav a.active{color:var(--text);background:rgba(255,255,255,.08)}
.journal{padding:125px 0 145px;border-top:1px solid rgba(255,255,255,.055)}.journal-head{display:grid;grid-template-columns:1.15fr .85fr;gap:9vw;align-items:end;margin-bottom:55px}.journal-head .section-label{margin-bottom:25px}.journal-head h2{font-size:clamp(2.7rem,4.7vw,5.5rem);line-height:1.02;letter-spacing:-.055em;font-weight:500}.journal-head h2 span{color:#c9baff}.journal-intro p{color:var(--muted);line-height:1.85}.journal-intro .inline-arrow{margin-top:25px}.latest-posts{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.home-post-cover,.blog-card-cover{display:block;position:relative;overflow:hidden;border-radius:21px;border:1px solid rgba(255,255,255,.1);background:#101017}.home-post-cover{aspect-ratio:1.12}.home-post-cover img,.blog-card-cover img,.single-post-cover img{width:100%;height:100%;display:block;object-fit:cover}.post-cover-placeholder,.post-hero-placeholder{width:100%;height:100%;position:relative;overflow:hidden}.post-cover-placeholder{display:flex;padding:24px;justify-content:space-between;align-items:flex-end}.post-cover-placeholder:before,.post-hero-placeholder:before{content:'';position:absolute;width:50%;aspect-ratio:1;border:1px solid rgba(255,255,255,.18);border-radius:50%;right:-5%;top:-10%;box-shadow:0 0 0 35px rgba(255,255,255,.025),0 0 0 70px rgba(255,255,255,.018)}.post-cover-placeholder span,.post-cover-placeholder strong{position:relative;z-index:2}.post-cover-placeholder span{font-family:'Playfair Display',serif;font-size:2rem;color:rgba(255,255,255,.55)}.post-cover-placeholder strong{font-size:.62rem;letter-spacing:.16em;text-transform:uppercase}.cover-1{background:radial-gradient(circle at 68% 25%,rgba(199,175,255,.42),transparent 28%),linear-gradient(145deg,#271f37,#111016 72%)}.cover-2{background:radial-gradient(circle at 30% 20%,rgba(97,184,255,.38),transparent 30%),linear-gradient(145deg,#142331,#0e1015 72%)}.cover-3{background:radial-gradient(circle at 72% 28%,rgba(255,111,161,.26),transparent 30%),linear-gradient(145deg,#2b1722,#111015 72%)}.cover-4{background:radial-gradient(circle at 55% 20%,rgba(227,190,106,.29),transparent 27%),linear-gradient(145deg,#292116,#11100e 72%)}.home-post-meta,.blog-card-meta{margin-top:18px;display:flex;flex-wrap:wrap;gap:10px 15px;color:#77727f;font-size:.63rem;letter-spacing:.08em;text-transform:uppercase}.home-post-card h3{margin-top:11px;font-family:'Playfair Display',serif;font-size:1.55rem;line-height:1.18;font-weight:600}.home-post-card>p{margin-top:11px;color:#8f8995;font-size:.86rem;line-height:1.7}.read-link{margin-top:18px;display:inline-flex;align-items:center;gap:9px;color:#d5cde2;font-size:.78rem;transition:.2s}.read-link:hover{gap:14px;color:#fff}.journal-footer{margin-top:55px;padding:29px 0;display:flex;justify-content:space-between;align-items:center;gap:30px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.journal-footer p{color:#8d8793}
.blog-hero{padding:105px 0 90px}.blog-kicker{margin-bottom:25px;font-size:.66rem;font-weight:700;letter-spacing:.2em;color:#9d97a5}.blog-hero h1{max-width:1050px;font-size:clamp(4rem,8vw,8.7rem);line-height:.88;letter-spacing:-.065em;font-weight:500}.blog-hero h1 span{color:#cbbaff}.blog-hero-bottom{margin-top:54px;display:flex;justify-content:space-between;gap:45px;align-items:end}.blog-hero-bottom>p{max-width:610px;color:var(--muted);line-height:1.9}.blog-stamp{width:110px;height:110px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.16);border-radius:50%;color:#aaa3b2;font-size:.58rem;letter-spacing:.12em;transform:rotate(8deg)}.blog-browser{padding:70px 0 150px}.blog-controls{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.category-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.category-filter button,.ghost-btn{appearance:none;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.025);color:#918b98;border-radius:999px;padding:9px 13px;font:inherit;font-size:.69rem;cursor:pointer}.category-filter button:hover,.category-filter button.active{background:#f0ebf7;color:#0d0c11;border-color:#f0ebf7}.search-box{min-width:230px;display:flex;align-items:center;gap:8px;border-bottom:1px solid rgba(255,255,255,.18);padding:7px 0}.search-box input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:.78rem}.blog-count-row{padding:27px 0 36px;display:flex;justify-content:space-between;color:#6e6975;font-size:.66rem;letter-spacing:.08em;text-transform:uppercase}.blog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:65px 28px}.blog-card-cover{aspect-ratio:1.6;transition:.35s}.blog-card-cover:hover{transform:translateY(-4px)}.cover-arrow{position:absolute;right:16px;top:16px;width:39px;height:39px;display:grid;place-items:center;border-radius:50%;background:rgba(10,10,13,.65);border:1px solid rgba(255,255,255,.13);backdrop-filter:blur(12px);z-index:3}.blog-card h2{margin-top:14px;font-family:'Playfair Display',serif;font-size:clamp(1.65rem,2.4vw,2.5rem);line-height:1.08;font-weight:600}.blog-card>p{margin-top:13px;color:#8f8995;line-height:1.75;font-size:.9rem}.no-results{text-align:center;padding:90px 0}.blog-note{margin-bottom:130px;padding:65px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.018));display:grid;grid-template-columns:1.15fr .85fr;gap:8vw;align-items:end}.blog-note h2{font-family:'Playfair Display',serif;font-size:clamp(2.2rem,4vw,4.4rem);line-height:1}.blog-note>p{color:var(--muted);line-height:1.8}
.single-post-head{padding:105px 0 60px;max-width:930px}.back-link{display:inline-block;margin-bottom:58px;color:#8b8591;font-size:.75rem}.single-post-meta{display:flex;flex-wrap:wrap;gap:11px 18px;margin-bottom:24px;color:#88828e;font-size:.65rem;letter-spacing:.1em;text-transform:uppercase}.single-post-head h1{font-family:'Playfair Display',serif;font-size:clamp(3.2rem,6vw,6.7rem);line-height:.96;letter-spacing:-.045em}.single-post-summary{max-width:750px;margin-top:30px;color:#aaa4af;font-size:1.1rem;line-height:1.9}.single-post-cover{height:min(70vw,690px);overflow:hidden;border-radius:30px;border:1px solid rgba(255,255,255,.09)}.post-hero-placeholder{display:flex;align-items:end;justify-content:space-between;padding:50px}.post-hero-placeholder span{position:relative;z-index:2;font-size:.64rem;letter-spacing:.19em}.post-hero-placeholder strong{position:relative;z-index:2;font-size:clamp(5rem,12vw,11rem);color:rgba(255,255,255,.16)}.post-layout{max-width:970px;padding:90px 0 125px;display:grid;grid-template-columns:170px 1fr;gap:75px}.post-aside{position:sticky;top:45px;align-self:start;color:#716b76;font-size:.69rem}.post-aside>span{display:block;font-size:.56rem;letter-spacing:.18em}.post-aside strong{color:#cfc9d4}.aside-line{width:45px;height:1px;margin:20px 0;background:var(--line)}.post-content{color:#c4bec8;font-size:1.04rem;line-height:2}.post-content p+p,.post-content p+h2,.post-content h2+p{margin-top:28px}.post-content h2{margin-top:55px;font-family:'Playfair Display',serif;font-size:2.2rem;color:#f3edf7}.post-content blockquote{margin:42px 0;padding:4px 0 4px 28px;border-left:2px solid #a88bff;font-family:'Playfair Display',serif;font-style:italic;font-size:1.65rem;line-height:1.45;color:#ded2ff}.post-content ul{margin:28px 0 0 18px}.post-end{margin-bottom:130px;padding:70px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:30px}.post-end>p{flex:1;color:#88828e}.not-found{min-height:70vh;display:grid;place-content:center;justify-items:center;text-align:center}.not-found h1{margin:10px 0 30px;font-family:'Playfair Display',serif;font-size:3rem}
.editor-shell{padding:90px 0 140px}.editor-intro{max-width:760px;margin-bottom:55px}.editor-intro h1{font-size:clamp(3rem,6vw,6rem);line-height:.98;letter-spacing:-.055em}.editor-intro h1 span{color:#c9baff}.editor-intro>p:last-child{margin-top:24px;color:var(--muted);line-height:1.8}.editor-form{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:35px;border:1px solid var(--line);border-radius:28px;background:rgba(255,255,255,.025)}.editor-field{display:flex;flex-direction:column;gap:10px}.editor-field.wide,.editor-actions.wide,.editor-message.wide{grid-column:1/-1}.editor-field label{color:#a39da9;font-size:.67rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.editor-field input,.editor-field textarea{width:100%;border:1px solid rgba(255,255,255,.11);border-radius:14px;outline:0;background:rgba(0,0,0,.16);color:var(--text);font:inherit;padding:14px 15px}.editor-field textarea{resize:vertical;line-height:1.7}.image-drop{min-height:115px;position:relative;display:grid;place-items:center;text-align:center;border:1px dashed rgba(255,255,255,.16);border-radius:16px}.image-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}.image-drop strong{display:block}.image-drop span{color:#766f7b;font-size:.7rem}.image-preview{width:100%;max-height:430px;object-fit:cover;border-radius:15px}.editor-actions{display:flex;gap:15px;flex-wrap:wrap}.editor-save{border:0;cursor:pointer}.editor-message{min-height:28px;color:#9dcdae}.saved-posts{margin-top:70px}.saved-posts-head{padding-bottom:18px;display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}.saved-posts-head h2{font-family:'Playfair Display',serif;font-size:2rem}.saved-post-item{min-height:90px;display:flex;justify-content:space-between;align-items:center;gap:25px;border-bottom:1px solid var(--line)}.saved-post-item span{color:#716b76;font-size:.6rem;letter-spacing:.1em;text-transform:uppercase}.saved-post-item>div:last-child{display:flex;gap:15px}.saved-post-item a,.saved-post-item button{color:#a49daa;border:0;background:none;font:inherit;font-size:.72rem;cursor:pointer}.empty-state{color:#77717c;padding:25px 0}
@media(max-width:900px){.journal-head,.blog-note{grid-template-columns:1fr}.latest-posts{grid-template-columns:1fr 1fr}.blog-grid{grid-template-columns:1fr}.post-layout{grid-template-columns:1fr;gap:35px}.post-aside{position:static}.post-aside>span,.post-aside strong,.aside-line{display:none}}@media(max-width:680px){.journal{padding:90px 0}.latest-posts{grid-template-columns:1fr}.journal-footer,.blog-hero-bottom,.blog-controls,.post-end{align-items:flex-start;flex-direction:column}.blog-hero{padding:70px 0 65px}.blog-hero h1{font-size:clamp(3.2rem,16vw,5.2rem)}.blog-note{padding:35px 27px}.single-post-head{padding:65px 0 40px}.single-post-cover{height:70vw;border-radius:20px}.post-layout{padding:55px 0 80px}.editor-form{grid-template-columns:1fr;padding:24px 18px}.editor-field.wide,.editor-actions.wide,.editor-message.wide{grid-column:auto}.saved-post-item{align-items:flex-start;flex-direction:column;padding:18px 0}}


/* =========================================================
   SUPABASE CMS / ADMIN
   ========================================================= */

.blog-loading,
.blog-error {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #8d8794;
  text-align: center;
}

.blog-loading.compact {
  min-height: 110px;
}

.blog-loading span {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255,255,255,.12);
  border-top-color: #c5b4ff;
  border-radius: 50%;
  animation: cms-spin .8s linear infinite;
}

@keyframes cms-spin {
  to { transform: rotate(360deg); }
}

.blog-error strong {
  color: #f1d5dc;
}

.blog-error span {
  max-width: 520px;
  font-size: .78rem;
}

.preview-data-note,
.source-notice {
  margin-top: 20px;
  padding: 11px 14px;
  border: 1px solid rgba(190,165,255,.18);
  border-radius: 12px;
  background: rgba(174,142,255,.055);
  color: #91899b;
  font-size: .7rem;
  line-height: 1.5;
}

.post-loading {
  min-height: 65vh;
}

.post-content h3 {
  margin-top: 38px;
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  line-height: 1.2;
  color: #f3edf7;
}

.post-content hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.post-content code {
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px;
  background: rgba(255,255,255,.045);
  color: #d8cdfc;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .9em;
}

.post-content a {
  color: #cbbaff;
  text-decoration: underline;
  text-decoration-color: rgba(203,186,255,.4);
  text-underline-offset: 4px;
}

.article-image {
  margin: 48px 0;
}

.article-image img {
  width: 100%;
  max-height: 720px;
  display: block;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
}

.article-image figcaption {
  margin-top: 10px;
  color: #77717e;
  font-size: .7rem;
  text-align: center;
}

.admin-page {
  background:
    radial-gradient(circle at 10% 5%, rgba(91,142,255,.08), transparent 25%),
    radial-gradient(circle at 90% 15%, rgba(176,134,255,.10), transparent 26%),
    var(--bg);
}

.admin-shell {
  padding: 78px 0 135px;
}

.admin-setup-card {
  max-width: 780px;
  margin: 70px auto;
  padding: clamp(34px, 6vw, 62px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 10%, rgba(168,139,255,.12), transparent 32%),
    rgba(255,255,255,.025);
}

.admin-setup-card h1 {
  max-width: 650px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
}

.admin-setup-card > p:not(.tiny-label) {
  margin: 25px 0 30px;
  color: var(--muted);
  line-height: 1.8;
}

.admin-setup-card code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: #d9cdf9;
}

.admin-login {
  min-height: calc(100vh - 240px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 8vw;
  align-items: center;
}

.admin-login-copy h1,
.admin-dashboard-head h1 {
  font-size: clamp(3.4rem, 6vw, 6.7rem);
  line-height: .94;
  letter-spacing: -.06em;
  font-weight: 500;
}

.admin-login-copy h1 span,
.admin-dashboard-head h1 span {
  display: block;
  color: #c9baff;
}

.admin-login-copy > p:last-child {
  max-width: 580px;
  margin-top: 28px;
  color: var(--muted);
  line-height: 1.85;
}

.login-card {
  padding: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 27px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.065), rgba(255,255,255,.022));
  box-shadow: 0 35px 100px rgba(0,0,0,.28);
}

.login-card > div:first-child {
  margin-bottom: 30px;
}

.login-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(170,143,255,.12);
  color: #cabaff;
}

.login-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.login-card > div:first-child p {
  margin-top: 5px;
  color: #7f7986;
  font-size: .78rem;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.login-card label > span,
.cms-field > label,
.field-title-row > label {
  color: #99929f;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-card input,
.cms-field input,
.cms-field textarea,
.admin-search input {
  width: 100%;
  outline: 0;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  background: rgba(0,0,0,.16);
  color: var(--text);
  font: inherit;
  transition: .2s ease;
}

.login-card input {
  padding: 14px 15px;
}

.login-card input:focus,
.cms-field input:focus,
.cms-field textarea:focus {
  border-color: rgba(190,166,255,.58);
  box-shadow: 0 0 0 3px rgba(168,139,255,.065);
}

.admin-primary {
  border: 0;
  cursor: pointer;
}

.login-card .admin-primary {
  width: 100%;
  margin-top: 26px;
}

.form-message {
  min-height: 19px;
  display: inline-flex;
  align-items: center;
  color: #898390;
  font-size: .72rem;
}

.form-message[data-type="error"] {
  color: #ff9dad;
}

.form-message[data-type="success"] {
  color: #9bd8b0;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed !important;
}

.admin-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 45px;
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-account > span {
  color: #8f8896;
  font-size: .75rem;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.admin-editor-panel,
.admin-posts-panel {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;
  background: rgba(255,255,255,.022);
}

.admin-editor-panel {
  padding: clamp(22px, 3vw, 34px);
}

.editor-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.editor-panel-head span,
.posts-panel-head > div > span {
  display: block;
  color: #716b78;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.editor-panel-head h2 {
  margin-top: 5px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.cms-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.cms-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cms-wide,
.cms-actions {
  grid-column: 1 / -1;
}

.cms-field input,
.cms-field textarea {
  padding: 13px 14px;
}

.cms-field textarea {
  resize: vertical;
  line-height: 1.65;
}

.cms-field > small {
  align-self: flex-end;
  color: #655f6b;
  font-size: .62rem;
}

.field-title-row {
  min-height: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.remove-cover-check {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  color: #746e79 !important;
  font-size: .61rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}

.remove-cover-check input {
  width: auto;
  accent-color: #a88bff;
}

.admin-image-picker {
  min-height: 105px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 16px;
  background: rgba(255,255,255,.016);
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}

.admin-image-picker:hover {
  border-color: rgba(190,166,255,.38);
  background: rgba(168,139,255,.035);
}

.admin-image-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-picker-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(168,139,255,.1);
  color: #c6b4ff;
  font-size: 1.3rem;
}

.admin-image-picker strong {
  display: block;
  font-size: .82rem;
}

.admin-image-picker small {
  display: block;
  margin-top: 3px;
  color: #706a76;
  font-size: .65rem;
}

.cover-preview-shell {
  height: 280px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: #111017;
}

.cover-preview-shell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.read-time {
  color: #766f7c;
  font-size: .65rem;
}

.markdown-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(255,255,255,.025);
}

.markdown-toolbar button {
  min-width: 37px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(0,0,0,.13);
  color: #a9a2af;
  font: inherit;
  font-size: .67rem;
  cursor: pointer;
  transition: .2s ease;
}

.markdown-toolbar button:hover {
  color: white;
  border-color: rgba(255,255,255,.18);
}

.editor-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}

.editor-split > textarea {
  min-height: 520px;
  border: 0;
  border-radius: 0;
  background: rgba(0,0,0,.13);
  resize: vertical;
}

.editor-split > textarea:focus {
  box-shadow: none;
}

.live-preview {
  min-width: 0;
  padding: 24px;
  border-left: 1px solid rgba(255,255,255,.08);
  overflow: auto;
  background: rgba(255,255,255,.012);
}

.live-preview-label {
  margin-bottom: 24px;
  color: #5f5965;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.live-preview .post-content {
  font-size: .9rem;
  line-height: 1.8;
}

.live-preview .post-content h2 {
  margin-top: 32px;
  font-size: 1.65rem;
}

.live-preview .post-content h3 {
  margin-top: 26px;
  font-size: 1.3rem;
}

.live-preview .post-content blockquote {
  margin: 28px 0;
  font-size: 1.2rem;
}

.live-preview .article-image {
  margin: 28px 0;
}

.preview-placeholder {
  color: #625c67;
}

.cms-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  padding-top: 4px;
}

.cms-actions .form-message {
  margin-right: auto;
}

.admin-posts-panel {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}

.posts-panel-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.posts-panel-head > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.posts-panel-head strong {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
}

.admin-search {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-search > span {
  color: #736d78;
}

.admin-search input {
  padding: 9px 10px;
  font-size: .72rem;
}

.admin-post-list {
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.admin-post-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.admin-post-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-post-main:hover {
  background: rgba(255,255,255,.025);
}

.admin-post-main img,
.admin-post-placeholder {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  object-fit: cover;
  border-radius: 11px;
  background: linear-gradient(145deg, #2a2139, #121016);
  color: #8c79bd;
}

.admin-post-copy {
  min-width: 0;
}

.admin-post-copy small {
  display: block;
  overflow: hidden;
  color: #6d6672;
  font-size: .56rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-post-copy strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.status-pill {
  display: inline-block;
  margin-top: 6px;
  font-size: .58rem;
  font-style: normal;
}

.status-pill.published {
  color: #8dccaa;
}

.status-pill.draft {
  color: #d4b27e;
}

.admin-delete {
  width: 38px;
  border: 0;
  background: transparent;
  color: #5e5862;
  font-size: 1.15rem;
  cursor: pointer;
  transition: .2s ease;
}

.admin-delete:hover {
  color: #ff96a8;
  background: rgba(255,105,130,.04);
}

@media (max-width: 1100px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-posts-panel {
    position: static;
    max-height: none;
  }

  .admin-post-list {
    max-height: 520px;
  }
}

@media (max-width: 820px) {
  .admin-login {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .admin-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-split {
    grid-template-columns: 1fr;
  }

  .live-preview {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }
}

@media (max-width: 680px) {
  .admin-shell {
    padding-top: 55px;
  }

  .admin-account {
    width: 100%;
    justify-content: space-between;
  }

  .admin-account > span {
    max-width: 65vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cms-form {
    grid-template-columns: 1fr;
  }

  .cms-wide,
  .cms-actions {
    grid-column: auto;
  }

  .editor-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .field-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cms-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cms-actions .form-message {
    order: 3;
    margin-right: 0;
  }

  .save-button {
    width: 100%;
  }

  .cover-preview-shell {
    height: 210px;
  }
}

/* =========================================================
   FINAL PERSONALIZATION — BESA
   ========================================================= */

/* Workspace hero: replaces the generic monogram with a personal desk scene. */
.workspace-card {
  width: min(100%, 510px);
  aspect-ratio: .82;
  padding: 24px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 28%, rgba(125, 102, 232, .18), transparent 34%),
    linear-gradient(155deg, rgba(255,255,255,.072), rgba(255,255,255,.024)),
    rgba(10, 10, 15, .82);
}

.workspace-card::before {
  width: 340px;
  height: 340px;
  top: 15%;
  background: rgba(119, 83, 221, .20);
  filter: blur(95px);
}

.workspace-scene {
  position: absolute;
  inset: 78px 25px 79px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(102, 86, 167, .19), transparent 47%),
    #0c0c12;
  background-size: 22px 22px, 22px 22px, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.monitor {
  position: absolute;
  top: 15%;
  width: 43%;
  height: 42%;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(5, 6, 10, .92);
  box-shadow: 0 20px 35px rgba(0,0,0,.34), 0 0 0 4px rgba(255,255,255,.018);
}

.monitor-code {
  left: 5%;
  transform: perspective(800px) rotateY(6deg);
}

.monitor-journal {
  right: 5%;
  transform: perspective(800px) rotateY(-6deg);
}

.monitor-bar {
  height: 27px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #5f5968;
  font-family: monospace;
  font-size: .45rem;
}

.monitor-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}

.monitor-bar span {
  margin-left: 5px;
}

.screen-code {
  padding: 15px 13px;
}

.screen-code b {
  width: 88%;
  height: 5px;
  display: block;
  margin: 8px 0;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(177, 154, 255, .62), rgba(102, 184, 255, .26));
  opacity: .7;
}

.screen-code b:nth-child(even) {
  margin-left: 11%;
  background: rgba(255,255,255,.13);
}

.screen-code b.short { width: 48%; }
.screen-code b.mid { width: 67%; }

.journal-mini {
  padding: 18px 15px;
}

.journal-mini span {
  display: block;
  color: #8c7bb8;
  font-size: .42rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.journal-mini strong {
  display: block;
  margin: 9px 0 17px;
  color: #ddd6e7;
  font-family: "Playfair Display", serif;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.05;
}

.journal-mini em {
  width: 86%;
  height: 5px;
  display: block;
  margin: 7px 0;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
}

.journal-mini em.short { width: 57%; }

.monitor-stand {
  position: absolute;
  width: 3px;
  height: 23px;
  left: 50%;
  bottom: -23px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.16);
}

.monitor-stand::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 3px;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(255,255,255,.12);
}

.desk-line {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 28%;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2b211c, #53382c 42%, #2c201b);
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

.keyboard-mini {
  position: absolute;
  width: 29%;
  height: 9%;
  left: 35%;
  bottom: 15%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  background: #11121a;
  transform: perspective(350px) rotateX(54deg);
}

.keyboard-mini span {
  border-radius: 2px;
  background: rgba(255,255,255,.11);
}

.coffee-mini {
  position: absolute;
  width: 32px;
  height: 31px;
  right: 14%;
  bottom: 16%;
  border: 2px solid rgba(218, 190, 155, .45);
  border-radius: 5px 5px 11px 11px;
  background: rgba(88, 55, 38, .4);
}

.coffee-mini::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 14px;
  right: -11px;
  top: 6px;
  border: 2px solid rgba(218, 190, 155, .32);
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.coffee-mini span,
.coffee-mini span::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 16px;
  top: -20px;
  left: 9px;
  background: rgba(255,255,255,.15);
  filter: blur(.3px);
  transform: rotate(8deg);
}

.coffee-mini span::before {
  top: 2px;
  left: 8px;
  transform: rotate(-13deg);
}

.cat-mini {
  position: absolute;
  width: 64px;
  height: 68px;
  left: 9%;
  bottom: 11%;
}

.cat-head {
  position: absolute;
  width: 28px;
  height: 25px;
  left: 18px;
  top: 8px;
  border-radius: 45% 45% 48% 48%;
  background: #6b4734;
  box-shadow: inset -5px -4px 0 rgba(0,0,0,.12);
}

.cat-ear {
  position: absolute;
  width: 12px;
  height: 14px;
  top: 2px;
  background: #6b4734;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}
.cat-ear.a { left: 17px; transform: rotate(-15deg); }
.cat-ear.b { left: 36px; transform: rotate(15deg); }

.cat-body {
  position: absolute;
  width: 38px;
  height: 38px;
  left: 12px;
  bottom: 3px;
  border-radius: 50% 50% 28% 28%;
  background: #60402f;
}

.cat-tail {
  position: absolute;
  width: 33px;
  height: 33px;
  right: -2px;
  bottom: 3px;
  border: 6px solid #60402f;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(24deg);
}

.headphones-mini {
  position: absolute;
  right: 5%;
  top: 4%;
  color: rgba(190, 169, 255, .32);
  font-size: 2.2rem;
  transform: rotate(10deg);
}

.workspace-tags {
  position: absolute;
  left: 24px;
  bottom: 60px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.workspace-tags span {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: #77727f;
  background: rgba(255,255,255,.025);
  font-size: .5rem;
  letter-spacing: .08em;
}

/* Current-focus section */
.now {
  padding: 30px 0 130px;
}

.now-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 8vw;
  align-items: start;
}

.now-title .section-label {
  margin-bottom: 40px;
}

.now-title h2 {
  max-width: 520px;
  font-size: clamp(2.5rem, 4.3vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  font-weight: 500;
}

.now-title h2 span { color: #c9baff; }

.now-board {
  border-top: 1px solid var(--line);
}

.now-row {
  min-height: 106px;
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  transition: .28s ease;
}

.now-row:hover {
  padding: 0 12px;
  background: linear-gradient(90deg, rgba(168,139,255,.055), transparent);
}

.now-index {
  color: #5f5965;
  font-family: "Playfair Display", serif;
  font-size: .95rem;
}

.now-row small {
  display: block;
  margin-bottom: 5px;
  color: #6e6874;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.now-row strong {
  color: #d7d1dc;
  font-size: .92rem;
  font-weight: 500;
}

.now-row i {
  color: #675f70;
  font-style: normal;
  transition: .2s ease;
}

.now-row:hover i {
  color: #c9baff;
  transform: translate(3px,-3px);
}

/* Project details */
.project-side {
  min-width: max-content;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 13px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8d8794;
  font-size: .68rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: 3px;
  transition: .2s ease;
}

.project-link:hover {
  color: #fff;
  gap: 11px;
  border-color: rgba(255,255,255,.38);
}

/* More useful footer layout */
.footer-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .2s ease;
}

.footer-links a:hover { color: white; }

/* Custom 404 */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}

.error-card {
  width: min(720px, 100%);
  padding: clamp(35px, 7vw, 75px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.025);
}

.error-code {
  color: #7d708f;
  font-size: .66rem;
  letter-spacing: .24em;
}

.error-card h1 {
  margin: 14px 0 20px;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .95;
}

.error-card p {
  max-width: 520px;
  margin: 0 auto 30px;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 1040px) {
  .workspace-card { width: min(100%, 520px); }
  .now-grid { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 680px) {
  .workspace-card {
    width: min(100%, 365px);
    aspect-ratio: .78;
    padding: 18px;
    border-radius: 26px;
  }

  .workspace-scene {
    inset: 65px 18px 72px;
    border-radius: 18px;
  }

  .monitor {
    top: 17%;
    height: 38%;
  }

  .monitor-bar { height: 20px; padding: 0 6px; }
  .screen-code { padding: 8px; }
  .screen-code b { height: 4px; margin: 6px 0; }
  .journal-mini { padding: 10px; }
  .journal-mini strong { font-size: .64rem; margin: 6px 0 10px; }
  .journal-mini em { height: 4px; margin: 5px 0; }
  .cat-mini { transform: scale(.76); transform-origin: left bottom; }
  .coffee-mini { transform: scale(.8); transform-origin: bottom right; }
  .keyboard-mini { width: 31%; height: 8%; }
  .workspace-tags { left: 18px; bottom: 51px; }
  .workspace-tags span:nth-child(n+4) { display: none; }

  .now { padding: 10px 0 90px; }
  .now-title .section-label { margin-bottom: 28px; }
  .now-row { min-height: 92px; grid-template-columns: 30px 1fr auto; gap: 12px; }
  .now-row strong { font-size: .84rem; }

  .project-side {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  footer > div:first-child,
  .footer-links {
    justify-self: start;
  }

  footer p {
    display: block;
    text-align: left;
  }
}
