/* -------------- */
/*   Fonts duur   */
/* -------------- */

@font-face {
  font-family: 'bastelurA';
  src: url('../assets/Fonts/Basteleur-Bold.woff2') format('woff2');
  font-display: block;
}

/* --------------- */
/*   Variables     */
/* --------------- */

:root {
  --pink:        #f5d7df;
  --pink-mid:    #d4899e;
  --pink-dark:   #9e3a52;
  --cream:       #fdf6f0;
  --cream-dark:  #f0e4d7;
  --ink:         #1a1118;
  --ink-muted:   #4a3040;
  --gold:        #c8913a;
  --white:       #fffaf7;

  /* Theme tokens (overridden per theme) */
  --theme-bg:      var(--cream);
  --theme-bg-dark: var(--cream-dark);
  --theme-accent:  var(--pink);
  --theme-mid:     var(--pink-mid);
  --theme-dark:    var(--pink-dark);
  --theme-ink:     var(--ink);
  --theme-muted:   var(--ink-muted);

  --font-display: 'bastelurA', serif;
  --font-body:    'Instrument Serif', Georgia, serif;
  --font-mono:    'DM Mono', monospace;

  --section-pad: clamp(4rem, 8vw, 8rem);
  --content-max: 1100px;
}

[data-theme="blue"] {
  --theme-bg:      #dce8f5;
  --theme-bg-dark: #b8cfe8;
  --theme-accent:  #aecbea;
  --theme-mid:     #5a8fbf;
  --theme-dark:    #1e4d7a;
  --theme-ink:     #0d1f2d;
  --theme-muted:   #2a4a6b;
  --cream:         #dce8f5;
  --cream-dark:    #b8cfe8;
  --pink:          #aecbea;
  --pink-mid:      #5a8fbf;
  --pink-dark:     #1e4d7a;
  --ink:           #0d1f2d;
  --ink-muted:     #2a4a6b;
}

[data-theme="orange"] {
  --theme-bg:      #fdf0e0;
  --theme-bg-dark: #f5d9b0;
  --theme-accent:  #f7c98a;
  --theme-mid:     #d4883a;
  --theme-dark:    #8f4a10;
  --theme-ink:     #2d1800;
  --theme-muted:   #5a300a;
  --cream:         #fdf0e0;
  --cream-dark:    #f5d9b0;
  --pink:          #f7c98a;
  --pink-mid:      #d4883a;
  --pink-dark:     #8f4a10;
  --ink:           #2d1800;
  --ink-muted:     #5a300a;
}

[data-theme="purple"] {
  --theme-bg:      #ede0f5;
  --theme-bg-dark: #d5b8ea;
  --theme-accent:  #c9a8e0;
  --theme-mid:     #8a5abf;
  --theme-dark:    #4a1f7a;
  --theme-ink:     #1a0d2d;
  --theme-muted:   #3d1f5a;
  --cream:         #ede0f5;
  --cream-dark:    #d5b8ea;
  --pink:          #c9a8e0;
  --pink-mid:      #8a5abf;
  --pink-dark:     #4a1f7a;
  --ink:           #1a0d2d;
  --ink-muted:     #3d1f5a;
}

/* --------------- */
/*      Reset      */
/* --------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scrollbar-color: var(--cream-dark) var(--cream);
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--cream);
}

html::-webkit-scrollbar-thumb {
  background: var(--cream-dark);
  border-radius: 5px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--pink-mid);
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul  { list-style: none; }
a   { color: inherit; text-decoration: none; }

/* --------------- */
/*   Background    */
/* --------------- */

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

[data-theme="blue"] #bg-canvas,
[data-theme="orange"] #bg-canvas,
[data-theme="purple"] #bg-canvas {
  opacity: 0.07;
}

/* --------------- */
/*   Idle overlay  */
/* --------------- */

#idle-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 6, 9, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#idle-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.idle-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--pink);
  text-align: center;
  line-height: 1.1;
  animation: idlePulse 3s ease-in-out infinite;
  margin: 0;
}

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

/* --------------- */
/*      Nav        */
/* --------------- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pink-mid);
}

nav > ul,
nav > .nav-hamburger {
  justify-self: end;
  grid-column: 3;
}

/* --------------- */
/* Theme switcher  */
/* --------------- */

.nav-themes {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

nav > .nav-themes {
  justify-self: center;
  grid-column: 2;
}

.theme-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #1a1118;
  cursor: pointer;
  padding: 0;
  background: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, border-width 0.15s;
  flex-shrink: 0;
}

.theme-btn::before,
.theme-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.theme-btn::before {
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.theme-btn::after {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.theme-btn[data-theme="default"]::before { background: #fdf6f0; }
.theme-btn[data-theme="default"]::after  { background: #d4899e; }

.theme-btn[data-theme="blue"]::before { background: #dce8f5; }
.theme-btn[data-theme="blue"]::after  { background: #5a8fbf; }

.theme-btn[data-theme="orange"]::before { background: #fdf0e0; }
.theme-btn[data-theme="orange"]::after  { background: #d4883a; }

.theme-btn[data-theme="purple"]::before { background: #ede0f5; }
.theme-btn[data-theme="purple"]::after  { background: #8a5abf; }

.theme-btn:hover {
  transform: scale(1.15);
}

.theme-btn.active {
  border-width: 2.5px;
  transform: scale(1.15);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  transition: color 0.2s;
  grid-column: 1;
}
.nav-logo:hover { color: var(--pink-dark); }

nav ul { display: flex; gap: 2.5rem; }

nav ul a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink-muted);
  transition: color 0.2s;
}
nav ul a:hover { color: var(--ink); }

.nav-divider {
  width: 1px;
  background: var(--pink-mid);
  align-self: stretch;
  margin: 0.15rem 0;
}

.nav-page-link {
  border: 1px solid var(--pink-mid) !important;
  padding: 0.2rem 0.6rem !important;
  color: var(--ink-muted) !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s !important;
}

.nav-page-link:hover,
.nav-page-link[aria-current="page"] {
  background: var(--pink) !important;
  border-color: var(--pink-dark) !important;
  color: var(--ink) !important;
}

/* --------------- */
/*   Nav dropdown  */
/* --------------- */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink-muted);
  background: none;
  border: 1px solid var(--pink-mid);
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  vertical-align: middle;
  line-height: 1;
}

.nav-dropdown {
  display: flex;
  align-items: center;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.open {
  background: var(--pink);
  border-color: var(--pink-dark);
  color: var(--ink);
}

.nav-dropdown-btn .nav-dropdown-arrow {
  font-size: 0.55rem;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-dropdown-btn.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--cream);
  border: 1px solid var(--pink-mid);
  min-width: 140px;
  display: none;
  flex-direction: column;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(26, 17, 24, 0.08);
}

.nav-dropdown-menu.open {
  display: flex;
}

.nav-dropdown-menu a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted) !important;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--pink-mid);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  display: block;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: var(--pink);
  color: var(--ink) !important;
}

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

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, var(--pink) 0%, transparent 70%);
  z-index: -1;
}

[data-theme="blue"] .hero::before,
[data-theme="orange"] .hero::before,
[data-theme="purple"] .hero::before {
  opacity: 0.35;
}

.hero-title-svg {
  width: clamp(280px, 85vw, 1100px);
  height: auto;
  overflow: visible;
}

.hero-svg-text {
  font-family: var(--font-display);
  font-size: 140px;
  letter-spacing: -0.02em;
  user-select: none;
}

.hero-svg-text--ghost {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  opacity: 0;
  animation: heroGhost 0.01s 0.1s forwards;
}

@keyframes heroGhost {
  to { opacity: 0.18; }
}

.hero-svg-text--fill {
  fill: var(--ink);
  stroke: none;
}

.hero-wipe-rect {
  animation: heroWipe 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

[data-skip-hero-animation="true"] .hero-wipe-rect {
  animation: none;
  width: 800px;
}

@keyframes heroWipe {
  from { width: 0; }
  to   { width: 800px; }
}

.hero-title-svg {
  animation: heroSpin 2.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards;
  transform-origin: center center;
  perspective: 1000px;
}

[data-skip-hero-animation="true"] .hero-title-svg {
  animation: none;
  transform: rotateY(360deg) scale(1.2);
}

@keyframes heroSpin {
  0% { transform: rotateY(0deg) scale(1); }
  85% { transform: rotateY(350deg) scale(1.3); }
  100% { transform: rotateY(360deg) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wipe-rect {
    animation: none;
    width: 800px;
  }
  .hero-title-svg {
    animation: none;
    transform: rotateY(360deg) scale(1.2);
  }
  .hero-svg-text--ghost {
    animation: none;
    opacity: 0.18;
  }
}


.hero-sub {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  animation: heroIn 1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
  user-select: none;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-arrow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  animation: bounce 2s infinite;
  transition: opacity 0.4s ease;
}

.scroll-arrow.hidden { opacity: 0; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --------------- */
/*    Sections     */
/* --------------- */

.section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) clamp(1.5rem, 6vw, 5rem);
  max-width: var(--content-max);
  margin: 0 auto;
}

.section--alt {
  max-width: 100%;
  background: var(--pink);
}

.section--alt > * {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.section--alt > .section-label,
.section--alt > h2,
.section--alt > .contact-grid,
.section--alt > .blog-coming-soon,
.section--alt > #blog-posts,
.section--alt > #blog-post-view {
  padding-left: clamp(1.5rem, 6vw, 5rem);
  padding-right: clamp(1.5rem, 6vw, 5rem);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 3rem;
  color: var(--ink);
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--ink);
}

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}

.about-text p { max-width: 60ch; }

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.img-slot {
  position: relative;
  overflow: hidden;
  background: var(--pink-mid);
  border: 1px solid var(--pink-mid);
}
.img-slot--tall { grid-row: span 2; }

.img-slot--thin {
  grid-column: span 2;
  max-height: 180px;
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-slot:hover img { transform: scale(1.04); }

.img-slot--thin img {
  min-height: unset;
  max-height: 180px;
  object-fit: contain;
  object-position: center;
}

.img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.4rem 0.6rem;
  background: rgba(26, 17, 24, 0.72);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

/* --------------- */
/*    Highlight    */
/* --------------- */

.highlight {
  color: var(--ink);
  background-image: linear-gradient(var(--pink-mid), var(--pink-mid));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 90%;
  transition: background-size 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-position 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.highlight:hover {
  background-size: 100% 95%;
  background-position: 0 100%;
}

.link-highlight {
  position: relative;
  display: inline;
  color: var(--ink);
}

.link-highlight::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px;
  bottom: 1px;
  height: 3px;
  background: var(--pink-mid);
  z-index: -1;
  transition: height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              bottom 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.link-highlight:hover::after,
.link-highlight:focus-visible::after {
  height: 95%;
  bottom: 0;
}

/* --------------- */
/*   Simple Icons  */
/* --------------- */

.si-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  margin: 0 0.1em;
  color: var(--theme-dark);
}
.si-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* --------------- */
/*      Blog       */
/* --------------- */

.blog-coming-soon {
  border: 1px solid var(--pink-dark);
  padding: 3rem 2rem;
  text-align: center;
  background: color-mix(in srgb, var(--cream) 60%, transparent);
}

.coming-soon-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.coming-soon-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--pink-dark);
  color: var(--pink-dark);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-post-item {
  border: 1px solid var(--pink-mid);
  margin-bottom: -1px; /* collapse borders */
  background: var(--cream);
}

.blog-post-item.open {
  border-color: var(--pink-dark);
  z-index: 1;
  position: relative;
}

.blog-post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.blog-post-header:hover {
  background: var(--pink);
}

.blog-post-title {
  flex: 1;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: normal;
  color: var(--ink);
  margin: 0;
  text-align: left;
}

.blog-post-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
  margin-left: auto;
}

.blog-post-chevron {
  font-size: 0.7rem;
  color: var(--ink-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.blog-post-item.open .blog-post-chevron {
  transform: rotate(180deg);
}

/* Dropdown body */
.blog-post-body {
  overflow: hidden;
}

.blog-post-body[hidden] {
  display: none;
}

.blog-post-content {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--pink-mid);
  background: var(--cream-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
  text-align: left;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
  color: var(--ink);
}
.blog-post-content h1 { font-size: 1.6rem; }
.blog-post-content h2 { font-size: 1.3rem; }
.blog-post-content h3 { font-size: 1.1rem; }
.blog-post-content p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
  margin-bottom: 0.9em;
}
.blog-post-content p:last-child { margin-bottom: 0; }
.blog-post-content a  { color: var(--pink-dark); text-decoration: underline; }
.blog-post-content strong { font-weight: 600; }
.blog-post-content em { font-style: italic; }
.blog-post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--cream);
  border: 1px solid var(--pink-mid);
  padding: 0.1em 0.3em;
}
.blog-post-content blockquote {
  border-left: 3px solid var(--pink-mid);
  padding-left: 1rem;
  color: var(--ink-muted);
  margin: 0.75rem 0;
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  border: 1px solid var(--pink-mid);
  background: var(--pink-mid);
}

.project-card {
  background: var(--cream);
  padding: 2rem;
  transition: background 0.2s;
}
.project-card:hover { background: var(--cream-dark); }

.project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.project-header h3 { font-size: 1.3rem; }

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-dark);
  border: 1px solid var(--pink-dark);
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

.project-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.project-links { display: flex; gap: 1.5rem; }

.project-links .link-highlight {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* "view" button inside card triggers panel */
.project-view-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  position: relative;
  display: inline;
}

.project-view-btn::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px;
  bottom: 1px;
  height: 25%;
  background: var(--pink-mid);
  z-index: -1;
  transition: height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              bottom 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-view-btn:hover::after,
.project-view-btn:focus-visible::after {
  height: 95%;
  bottom: 0;
}

/* --------------- */
/*  Project Panel  */
/* --------------- */

#panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 17, 24, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#panel-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

#project-panel {
  position: fixed;
  inset: 0;
  z-index: 201;
  background: var(--cream);
  border-top: 2px solid var(--pink-mid);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

#project-panel:not([hidden]) { display: flex; }
#project-panel.open { transform: translateY(0); }

.panel-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  background: none;
  border: 1px solid var(--pink-mid);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  cursor: pointer;
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}
.panel-close:hover { background: var(--pink); color: var(--ink); }

.panel-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  height: 100%;
  overflow: hidden;
}

/* Gallery */
.panel-left {
  border-right: 1px solid var(--pink-mid);
  position: relative;
  overflow: hidden;
  background: var(--cream-dark);
}

.panel-gallery {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

.gallery-track .gallery-placeholder {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(253, 246, 240, 0.9);
  border: 1px solid var(--pink-mid);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.gallery-arrow:hover { background: var(--pink); }
.gallery-arrow--prev { left: 0.75rem; }
.gallery-arrow--next { right: 0.75rem; }
.gallery-arrow[disabled] { opacity: 0.3; pointer-events: none; }

.gallery-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink-mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.gallery-dot.active {
  background: var(--pink-dark);
  transform: scale(1.3);
}

/* Panel right */
.panel-right {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 3rem 2.5rem 2.5rem;
}

.panel-right-inner { max-width: 480px; }

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.panel-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-dark);
  border: 1px solid var(--pink-dark);
  padding: 0.15rem 0.6rem;
  margin-bottom: 1.5rem;
}

.panel-desc {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--pink-mid);
  padding-top: 1.5rem;
}

.panel-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.contact-list { display: flex; flex-direction: column; gap: 0; }

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--pink-mid);
}

.contact-platform {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.contact-handle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
}

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

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  background: var(--pink);
  border-top: 1px solid var(--pink-mid);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* --------------- */
/*  Mobile nav     */
/* --------------- */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  top: 3.5rem; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--cream);
  border-top: 1px solid var(--pink-mid);
  padding: 2.5rem 1.5rem;
  gap: 0;
  overflow-y: auto;
  transform: translateY(-105%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s   0.45s;
}

.nav-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s   0s;
}

.nav-mobile-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.nav-mobile-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-mobile-divider {
  width: 40%;
  max-width: 160px;
  height: 1px;
  background: var(--pink-mid);
  margin: 1.5rem 0;
}

.nav-mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-mobile-menu a:hover { color: var(--pink-dark); }

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { display: none; }
  .nav-hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-images { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .img-slot--tall { grid-row: span 1; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .panel-inner { grid-template-columns: 1fr; grid-template-rows: 50% 50%; }
  .panel-left  { border-right: none; border-bottom: 1px solid var(--pink-mid); }

  .section--alt > .section-label,
  .section--alt > h2,
  .section--alt > .contact-grid,
  .section--alt > .blog-coming-soon,
  .section--alt > #blog-posts,
  .section--alt > #blog-post-view {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #idle-overlay { display: none !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #idle-overlay { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}