:root {
    --black: #03050a;
    --dark: #080d17;
    --panel: rgba(255, 255, 255, 0.032);
    --gold: #c9a84c;
    --gold2: #f0d080;
    --gold3: #7a5c1e;
    --teal: #0af0c8;
    --red: #e8152fbf;
    --red2: #e94256bf;
    --red3: #682c2ce1;
    --white: #f4f0e8;
    --muted: rgba(244, 240, 232, 0.42);
    --border: rgba(201, 168, 76, 0.18);
    --border: #ff4560;
    --glow-g: #0af0c8;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  cursor: none;
}

/* ── Cursor (positioned by GSAP quickTo in modules/cursor.js) ── */
#cur,
#cur-r {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}
#cur {
  width: 8px;
  height: 8px;
  background: var(--red);
  z-index: 9999;
  mix-blend-mode: screen;
}
#cur-r {
  width: 32px;
  height: 32px;
  border: 1px solid var(--red);
  z-index: 9998;
  opacity: 0.6;
}
body:not(.cur-ready) #cur,
body:not(.cur-ready) #cur-r {
  opacity: 0;
}
.cur-grow #cur {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}
.cur-grow #cur-r {
  width: 50px;
  height: 50px;
  opacity: 0.25;
}
.cur-down #cur-r {
  width: 22px;
  height: 22px;
}

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

.scan-lines {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

/* Animated gradient mesh */
#mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: blobMove 18s ease-in-out infinite alternate;
}
.mb1 {
  width: 700px;
  height: 700px;
  background: var(--red);
  top: -20%;
  left: -15%;
  animation-delay: 0s;
}
.mb2 {
  width: 500px;
  height: 500px;
  background: var(--teal);
  bottom: -15%;
  right: -10%;
  animation-delay: -6s;
}
.mb3 {
  width: 400px;
  height: 400px;
  background: #0d2a1f;
  top: 30%;
  right: 20%;
  animation-delay: -12s;
}

@keyframes blobMove {
  from {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  to {
    transform: translate(40px, 60px) scale(1.12) rotate(15deg);
  }
}

/* Decorative vertical lines */
.v-line {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border) 30%,
    var(--border) 70%,
    transparent
  );
  z-index: 0;
  pointer-events: none;
}
.vl1 {
  left: 10%;
}
.vl2 {
  left: 90%;
}

/* ── TOPBAR ── */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 3.5rem;
}
.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--red2);
  text-transform: uppercase;
}
.logo em {
  font-style: italic;
  color: var(--white);
  opacity: 0.6;
  font-size: 0.95rem;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.avail-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.35rem 1rem;
  backdrop-filter: blur(16px);
  background: rgba(201, 168, 76, 0.05);
}
.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0af0c8;
  box-shadow: 0 0 8px #0af0c8;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.top-time {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ── BOTTOM BAR ── */
#bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 3.5rem;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: rgba(3, 5, 10, 0.4);
}
.bottom-copy {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.bottom-socials {
  display: flex;
  gap: 1.5rem;
}
.b-soc {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s, transform 0.25s;
}
.b-soc:hover {
  color: var(--red);
  transform: translateY(-2px);
}
.section-counter {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ── SIDE NAV ── */
#side-nav {
  position: fixed;
  left: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.snav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  position: relative;
}
.snav-tick {
  width: 20px;
  height: 1px;
  background: var(--muted);
  transition: all 0.35s;
  transform-origin: left;
}
.snav-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateX(-8px);
  white-space: nowrap;
}
.snav-item:hover .snav-label,
.snav-item.active .snav-label {
  opacity: 1;
  transform: translateX(0);
}
.snav-item.active .snav-tick {
  width: 36px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
.snav-item:hover .snav-tick {
  width: 28px;
  background: var(--red2);
}

/* ── SECTIONS ── */
.section {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.section.active {
  opacity: 1;
  pointer-events: all;
}
.sec-inner {
  position: relative;
  z-index: 5;
}

/* Transition states */
.sec-enter {
  animation: secIn 0.65s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.sec-exit-up {
  animation: secOutUp 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.sec-exit-down {
  animation: secOutDown 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes secIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes secOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-60px);
  }
}
@keyframes secOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(60px);
  }
}

/* ── Shared typography ── */
.kicker {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}

.big-title {
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-weight: 300;
}
.gold-span {
  color: var(--red2);
}
.ital {
  font-style: italic;
}

/* ────────────── SECTION 0 · HERO ────────────── */
.hero-inner {
  text-align: left;
  max-width: 900px;
  padding: 0 1rem;
}
.hero-eyebrow {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  opacity: 0.4;
}
.hero-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  font-weight: 300;
  line-height: 0.88;
}
.hero-name .line1 {
  display: block;
  color: var(--white);
}
.hero-name .line2 {
  display: block;
  color: var(--red2);
  font-style: italic;
}
.hero-sub {
  margin-top: 2rem;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--muted);
  max-width: 500px;
  line-height: 1.9;
}
.hero-ctas {
  margin-top: 2.8rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.btn-gold {
  padding: 0.8rem 2.2rem;
  background: linear-gradient(135deg, var(--red), var(--teal));
  border: none;
  border-radius: 2px;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red2);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-gold:hover::after {
  opacity: 0.25;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px #ff4560;
  color: var(--black);
}
.btn-ghost {
  padding: 0.8rem 2.2rem;
  background: transparent;
  border: 1px solid var(--teal);
  border-radius: 2px;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.hero-tags {
  margin-top: 3.5rem;
  display: flex;
  gap: 2rem;
}
.hero-tag {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hero-tag strong {
  color: var(--white);
  font-size: 1.1rem;
}

.scroll-hint {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.scroll-hint::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--muted);
}

/* ────────────── SECTION 1 · ABOUT ────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 960px;
  padding: 0 1.5rem;
}
.about-photo-col {
  position: relative;
}
.photo-frame {
  width: 320px;
  height: 420px;
  position: relative;
}
.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.2) contrast(1.05);
  border-radius: 1px;
}
.photo-border-deco {
  position: absolute;
  inset: -14px;
  border: 1px solid var(--border);
  border-radius: 1px;
  pointer-events: none;
}
.photo-border-deco2 {
  position: absolute;
  inset: -28px;
  border: 1px solid rgba(3, 5, 10, 0.4);
  border-radius: 1px;
  pointer-events: none;
}
.gold-tab {
  position: absolute;
  bottom: 2rem;
  right: -2.5rem;
  background: var(--dark);
  border: 1px solid var(--teal);
  padding: 1rem 1.2rem;
  min-width: 130px;
}
.gold-tab-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--red2);
  line-height: 1;
}
.gold-tab-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}
.corner-deco {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 30px;
  height: 30px;
  border-top: 1px solid var(--red);
  border-left: 1px solid var(--teal);
  opacity: 0.5;
}

.about-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.about-body {
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 2rem;
}
.exp-row {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.exp-item {
  display: flex;
  flex-direction: column;
}
.exp-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--red2);
  line-height: 1;
}
.exp-lbl {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-tag {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 1px;
  transition: all 0.3s;
}
.tech-tag:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(201, 168, 76, 0.06);
}

/* ────────────── SECTION 2 · WORK ────────────── */
.work-layout {
  max-width: 1040px;
  width: 100%;
  padding: 0 1.5rem;
}
.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}
.work-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
}
.work-view-all {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}
.work-view-all:hover {
  gap: 1rem;
  color: var(--red2);
}

.proj-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.proj-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
}
.proj-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s;
}
.proj-row:hover::before {
  transform: scaleY(1);
}
.proj-row:hover {
  border-color: #682c2ce1;
  background: #682c2ce1;
  transform: translateX(4px);
}
.proj-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--red3);
}
.proj-thumb {
  width: 72px;
  height: 50px;
  object-fit: cover;
  border-radius: 1px;
  filter: brightness(0.8);
  transition: filter 0.3s;
}
.proj-row:hover .proj-thumb {
  filter: brightness(1);
}
.proj-info {
}
.proj-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.proj-cat {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-year {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.proj-arrow {
  font-size: 1rem;
  color: var(--red);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s;
}
.proj-row:hover .proj-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ────────────── SECTION 3 · SERVICES ────────────── */
.serv-layout {
  max-width: 1000px;
  width: 100%;
  padding: 0 1.5rem;
}
.serv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--border);
}
.serv-cell {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(10px);
  transition: all 0.4s;
  cursor: default;
}
.serv-cell:last-child {
  border-right: none;
}
.serv-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.serv-cell:hover::after {
  opacity: 1;
}
.serv-cell:hover {
  background: rgba(201, 168, 76, 0.04);
}
.serv-icon {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  display: block;
}
.serv-num {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  color: var(--red3);
}
.serv-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.serv-desc {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ────────────── SECTION 4 · PROCESS ────────────── */
.process-layout {
  max-width: 900px;
  width: 100%;
  padding: 0 1.5rem;
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--red),
    var(--teal),
    transparent
  );
}
.proc-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  position: relative;
}
.proc-step + .proc-step {
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}
.proc-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  background: var(--black);
  z-index: 1;
  position: relative;
  transition: all 0.3s;
}
.proc-step:hover .proc-circle {
  background: var(--red);
  color: var(--black);
  box-shadow: 0 0 20px #e94256bf;
}
.proc-content {
}
.proc-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.proc-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
}
.proc-tag {
  display: inline-block;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 0.15rem 0.6rem;
  border-radius: 1px;
  margin-top: 0.5rem;
}

/* ────────────── SECTION 5 · TESTIMONIALS ────────────── */
.testi-layout {
  max-width: 860px;
  width: 100%;
  padding: 0 1.5rem;
  text-align: center;
}
.quote-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 8rem;
  line-height: 0.5;
  color: var(--teal);
  opacity: 0.15;
  display: block;
  margin-bottom: 1rem;
}
.testi-cards {
  position: relative;
  min-height: 200px;
}
.testi-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s, transform 0.6s;
  transform: translateY(20px);
}
.testi-card.active {
  opacity: 1;
  transform: translateY(0);
}
.testi-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 2rem;
}
.testi-author {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}
.testi-role {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}
.testi-dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2rem;
}
.testi-dot {
  width: 20px;
  height: 1px;
  background: var(--muted);
  cursor: pointer;
  transition: all 0.3s;
}
.testi-dot.active {
  background: var(--red);
  width: 36px;
}

/* ────────────── SECTION 6 · STATS ────────────── */
.stats-layout {
  max-width: 900px;
  width: 100%;
  padding: 0 1.5rem;
}
.stats-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.stat-box {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--panel);
}
.stat-box:last-child {
  border-right: none;
}
.stat-box::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0);
  transition: transform 0.5s;
}
.stat-box:hover::before {
  transform: scaleX(1);
}
.stat-bignum {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.8rem;
  font-weight: 300;
  color: var(--red2);
  line-height: 1;
}
.stat-sup {
  font-size: 1.5rem;
  color: var(--red);
}
.stat-lbl {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.skills-section {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 4rem;
}
.sk-row {
}
.sk-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.sk-name {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}
.sk-pct {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  color: var(--red);
}
.sk-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.sk-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red2));
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ────────────── SECTION 7 · BLOG / THOUGHTS ────────────── */
.blog-layout {
  max-width: 1000px;
  width: 100%;
  padding: 0 1.5rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 1px;
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.35s;
}
.blog-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.blog-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.7);
  transition: filter 0.4s;
}
.blog-card:hover .blog-img {
  filter: brightness(0.9) saturate(1);
}
.blog-body {
  padding: 1.2rem;
}
.blog-cat {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.blog-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.blog-date {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-card.featured .blog-img {
  height: 200px;
}
.blog-card.featured .blog-title {
  font-size: 1.25rem;
}

/* ────────────── SECTION 8 · CONTACT ────────────── */
.contact-layout {
  max-width: 820px;
  width: 100%;
  padding: 0 1.5rem;
}
.contact-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-left {
}
.contact-big {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.contact-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.c-info-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.c-info-row i {
  color: var(--red);
  font-size: 0.85rem;
}
.c-info-row a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.c-info-row a:hover {
  color: var(--red);
}

.contact-form {
}
.cf2 {
  width: 100%;
  padding: 0.9rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 1.2rem;
  transition: border-color 0.3s;
}
.cf2::placeholder {
  color: var(--muted);
}
.cf2:focus {
  border-color: var(--red);
}
textarea.cf2 {
  resize: none;
  height: 90px;
}
.send-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--red), var(--red3));
  border: none;
  border-radius: 1px;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.send-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.3s;
}
.send-btn:hover::after {
  opacity: 0.1;
}
.send-btn:hover {
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.35);
}

.socials-row {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}
.soc-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 1px;
}
.soc-link:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.2);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  #side-nav {
    display: none;
  }
  #topbar {
    padding: 1.2rem 1.5rem;
  }
  #bottombar {
    padding: 0.9rem 1.5rem;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .photo-frame {
    width: 220px;
    height: 290px;
    margin: 0 auto;
  }
  .gold-tab {
    right: -1rem;
  }
  .serv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .serv-cell {
    border-bottom: 1px solid var(--border);
  }
  .stats-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-section {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .proj-row {
    grid-template-columns: auto 1fr auto;
  }
  .proj-thumb {
    display: none;
  }
}
@media (max-width: 600px) {
  .serv-grid,
  .stats-top {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .hero-name {
    font-size: clamp(3rem, 14vw, 5.5rem);
  }
  .hero-tags {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* ═══════════ Garrett edition additions ═══════════ */
@media (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}
@media (pointer: coarse) {
  html,
  body {
    cursor: auto;
  }
  #cur,
  #cur-r {
    display: none;
  }
}
:focus-visible {
  outline: 1px dashed var(--red);
  outline-offset: 4px;
}
.section {
  padding: 5rem 0 4rem;
}
.sec-inner {
  scrollbar-width: thin;
  scrollbar-color: var(--red3) transparent;
}
.proj-list {
  max-height: calc(100vh - 290px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--red3) transparent;
}
.proj-glyph,
.blog-art {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(10, 240, 200, 0.05));
}
.proj-glyph {
  width: 72px;
  height: 50px;
  font-size: 1.3rem;
  border: 1px solid var(--border);
}
.blog-art {
  height: 140px;
  font-size: 2.4rem;
}
.blog-card.featured .blog-art {
  height: 200px;
}
.serv-icon {
  color: var(--red);
}
.hero-type {
  margin-top: 1.4rem;
  min-height: 1.6em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--teal);
}
.caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--red);
  animation: blink 1s steps(1) infinite;
}
.testi-cards {
  min-height: 240px;
}
.testi-dot {
  border: 0;
  padding: 0;
}
.testi-card {
  margin: 0;
}
.testi-quote {
  border: 0;
}

/* About terminal */
.term {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(8, 13, 23, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.term-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red3);
}
.term-bar i:first-child {
  background: var(--red);
}
.term-bar span {
  margin-left: auto;
}
.term-body {
  flex: 1;
  padding: 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--white);
  white-space: pre-wrap;
  overflow: hidden;
}
.t-prompt {
  color: var(--teal);
}
.t-out {
  color: var(--muted);
}

/* Contact form */
select.cf2 {
  color-scheme: dark;
  appearance: none;
  border-radius: 0;
}
select.cf2 option {
  background: var(--dark);
  color: var(--white);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-status {
  min-height: 1.4rem;
  margin-top: 0.9rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.form-status.ok {
  color: var(--teal);
}
.form-status.err {
  color: var(--red);
}
.send-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Easter egg */
.panic {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  padding: 3rem;
  background: #0a0000;
  color: #ff4560;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(0.7rem, 1.4vw, 0.95rem);
  line-height: 1.6;
  cursor: pointer;
}
.panic pre {
  white-space: pre-wrap;
}

/* Short or narrow screens: let the section content scroll instead of clipping */
@media (max-height: 760px), (max-width: 900px) {
  .sec-inner {
    max-height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
  }
  .scroll-hint {
    display: none;
  }
}
@media (max-width: 600px) {
  #topbar .top-time {
    display: none;
  }
  .hero-tags {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mesh-blob,
  .avail-dot,
  .caret {
    animation: none;
  }
}

/* ═══════════ Animated background (modules/background.js) ═══════════ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════ Boot intro (modules/intro.js) ═══════════ */
#boot {
  position: fixed;
  inset: 0;
  z-index: 9990; /* above the page, below the custom cursor (9998/9999) */
  overflow: hidden;
}
.no-boot #boot,
#boot.boot-done {
  display: none;
}
.boot-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.4%;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, 0.018) 2px 3px),
    radial-gradient(ellipse at center, #0b0a10 0%, var(--black) 75%);
}
.boot-top {
  top: 0;
}
.boot-bottom {
  bottom: 0;
}
.boot-seam {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--teal), var(--red), transparent);
  box-shadow: 0 0 24px var(--red), 0 0 60px var(--teal);
  transform: scaleX(0);
  z-index: 3;
}
.boot-crt {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 max(1.5rem, 12vw);
  opacity: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.boot-head {
  margin-bottom: 1.2rem;
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  letter-spacing: 0.12em;
  color: var(--teal);
}
.boot-head span {
  color: var(--muted);
}
.boot-log {
  max-width: 760px;
  min-height: 16.5em;
  font-size: clamp(0.62rem, 1.5vw, 0.82rem);
  line-height: 1.85;
  color: rgba(244, 240, 232, 0.72);
  white-space: pre-wrap;
}
.boot-log .ok {
  color: var(--teal);
}
.boot-log .warn {
  color: var(--gold);
}
.boot-log .fail {
  color: #ff4560;
  text-shadow: 0 0 10px #ff4560;
}
.boot-bar {
  width: min(420px, 100%);
  height: 2px;
  margin-top: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
}
.boot-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff4560, var(--teal));
  box-shadow: 0 0 10px var(--teal);
}
.boot-name {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
}
.boot-sub {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + clamp(2.2rem, 5.5vw, 4.5rem));
  z-index: 2;
  text-align: center;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
}
.boot-skip {
  position: absolute;
  right: 2rem;
  bottom: 1.6rem;
  z-index: 4;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  animation: blink 2s infinite;
}
@media (prefers-reduced-motion: reduce) {
  #boot {
    display: none;
  }
}

/* ═══════════ Project detail modal (modules/modal.js) ═══════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9500; /* below the custom cursor, above the page chrome */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2.2rem 2.4rem 1.6rem;
  background: linear-gradient(160deg, rgba(14, 18, 30, 0.98), rgba(6, 8, 14, 0.98));
  border: 1px solid var(--red3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: var(--red3) transparent;
}
.modal-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 48px;
  height: 48px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--teal);
  pointer-events: none;
}
.modal-close,
.modal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--red3);
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}
.modal-close:hover,
.modal-nav:hover {
  border-color: var(--red);
  color: var(--red);
}
.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-right: 2.5rem;
}
.modal-icon-wrap {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  color: var(--red);
  border: 1px solid var(--red3);
  background: rgba(255, 69, 96, 0.06);
}
.modal-kicker {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
}
.modal-title {
  margin: 0.25rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
}
.modal-summary {
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(244, 240, 232, 0.75);
}
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1rem 1.5rem;
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.modal-meta dt {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-meta dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--white);
}
.modal-sub {
  margin: 1.4rem 0 0.7rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
}
.modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.modal-list li {
  position: relative;
  margin: 0 0 0.65rem;
  padding-left: 1.3rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(244, 240, 232, 0.8);
}
.modal-list li::before {
  content: "\203A";
  position: absolute;
  left: 0.2rem;
  color: var(--red);
}
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.modal-pager {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
@media (max-width: 600px) {
  .modal {
    padding: 0.75rem;
  }
  .modal-card {
    padding: 1.6rem 1.3rem 1.2rem;
    max-height: calc(100vh - 1.5rem);
  }
  .modal-meta {
    grid-template-columns: 1fr;
  }
}

/* ═══════════ Project cards (modules/cards.js, art.js) ═══════════ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  max-height: calc(100vh - 290px);
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--red3) transparent;
}
.proj-card:first-child {
  grid-column: span 2;
}
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(14, 18, 30, 0.9), rgba(6, 8, 14, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.07);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.proj-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--teal));
  transition: width 0.5s ease;
}
.proj-card:hover,
.proj-card:focus-visible {
  border-color: var(--red3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 69, 96, 0.15);
}
.proj-card:hover::after,
.proj-card:focus-visible::after {
  width: 100%;
}
.pc-media {
  position: relative;
  height: clamp(96px, 14vh, 130px);
  overflow: hidden;
  background: #080b13;
}
.pc-media::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.proj-art,
.pc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.proj-card:hover .proj-art,
.proj-card:hover .pc-img {
  transform: scale(1.1);
}
.pc-glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  font-size: 2.3rem;
  color: var(--c1, var(--red));
  text-shadow: 0 0 28px currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s ease, opacity 0.3s;
}
.proj-card:hover .pc-glyph,
.proj-card:focus-visible .pc-glyph {
  transform: translate(-50%, -62%) scale(1.12);
  opacity: 0;
}
.pc-badge,
.pc-idx,
.pc-ph {
  position: absolute;
  z-index: 3;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
}
.pc-badge {
  top: 14px;
  left: 14px;
  padding: 0.2rem 0.55rem;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--teal);
  background: rgba(3, 5, 10, 0.78);
  border: 1px solid var(--red3);
}
.pc-idx {
  top: 14px;
  right: 16px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 232, 0.55);
}
.pc-ph {
  left: 16px;
  bottom: 12px;
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  color: rgba(244, 240, 232, 0.4);
}
.pc-open {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(3, 5, 10, 0.6);
  backdrop-filter: blur(2px);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s;
}
.proj-card:hover .pc-open,
.proj-card:focus-visible .pc-open {
  opacity: 1;
}
.pc-body {
  padding: 0.9rem 1rem 1.05rem;
}
.pc-cat {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
}
.pc-title {
  margin: 0.3rem 0 0.65rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
}
.proj-card:first-child .pc-title {
  font-size: 1.6rem;
}
.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pc-tags span {
  padding: 0.18rem 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(244, 240, 232, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pc-spot {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.proj-card:hover .pc-spot {
  opacity: 1;
}
@media (max-width: 1100px) {
  .proj-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .proj-card:last-child {
    grid-column: span 2;
  }
}
@media (max-width: 800px) {
  .proj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proj-card:last-child {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  .proj-grid {
    grid-template-columns: 1fr;
  }
  .proj-card:first-child {
    grid-column: auto;
  }
}
@media (max-height: 760px), (max-width: 900px) {
  .proj-grid {
    max-height: none;
    overflow: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  .proj-art,
  .pc-img,
  .pc-glyph {
    transition: none;
  }
}

/* ===== Publications shelf (append to public/css/style.css) ===== */
#blog-grid.pub-shelf {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 28px);
    align-items: start;
}

@media (max-width: 1100px) {
    #blog-grid.pub-shelf {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    #blog-grid.pub-shelf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

.pub-card {
    position: relative;
    cursor: pointer;
    outline: none;
    --mx: 50%;
    --my: 50%;
    --pub: #ff4560;
}

.pub-book {
    position: relative;
    aspect-ratio: 2 / 3;
    transform-style: preserve-3d;
    border-radius: 3px 9px 9px 3px;
    box-shadow: 0 18px 38px -14px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.07);
    transition: box-shadow .35s;
}

.pub-card:hover .pub-book, .pub-card:focus-visible .pub-book {
    box-shadow: 0 28px 60px -16px color-mix(in srgb, var(--pub) 60%, transparent), 0 0 0 1px color-mix(in srgb, var(--pub) 55%, transparent);
}

.pub-card:focus-visible .pub-info {
    outline: 2px solid var(--pub);
    outline-offset: 6px;
    border-radius: 4px;
}

.pub-pages {
    position: absolute;
    right: -5px;
    top: 4px;
    bottom: 4px;
    width: 7px;
    border-radius: 0 3px 3px 0;
    background: repeating-linear-gradient(180deg, #e9e4d6 0 1px, #b9b3a2 1px 2px);
}

.pub-cover {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: #080b13;
}

    .pub-cover img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s cubic-bezier(.2,.7,.2,1);
    }

.pub-card:hover .pub-cover img {
    transform: scale(1.05);
}

.pub-glare {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.26), transparent 48%);
}

.pub-card:hover .pub-glare {
    opacity: 1;
}

.pub-spine {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    bottom: 0;
    width: 11px;
    pointer-events: none;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(255,255,255,.2) 35%, rgba(0,0,0,.12) 65%, transparent);
}

.pub-no, .pub-badge {
    position: absolute;
    z-index: 3;
    font: 600 10px/1 ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pub-no {
    top: 10px;
    right: 10px;
    padding: 5px 7px;
    border-radius: 4px;
    color: #f4f0e8;
    background: rgba(8,11,19,.72);
    backdrop-filter: blur(4px);
}

.pub-badge {
    left: 16px;
    bottom: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    color: #080b13;
    background: var(--pub);
}

.pub-info {
    padding-top: 16px;
}

.pub-kind {
    font: 600 10px/1.3 ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pub);
}

.pub-name {
    margin: 6px 0 10px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: #f4f0e8;
}

.pub-acro {
    display: flex;
    gap: 5px;
}

    .pub-acro b {
        display: grid;
        place-items: center;
        width: 22px;
        height: 22px;
        border-radius: 4px;
        font: 700 11px ui-monospace, Menlo, Consolas, monospace;
        color: var(--pub);
        border: 1px solid color-mix(in srgb, var(--pub) 55%, transparent);
        transition: background .25s, color .25s;
    }

.pub-card:hover .pub-acro b {
    background: var(--pub);
    color: #080b13;
}

    .pub-card:hover .pub-acro b:nth-child(2) {
        transition-delay: .04s;
    }

    .pub-card:hover .pub-acro b:nth-child(3) {
        transition-delay: .08s;
    }

    .pub-card:hover .pub-acro b:nth-child(4) {
        transition-delay: .12s;
    }

.pub-peek {
    display: inline-block;
    margin-top: 12px;
    font: 600 11px ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(244,240,232,.55);
    transition: color .25s;
}

    .pub-peek i {
        display: inline-block;
        transition: transform .25s;
    }

.pub-card:hover .pub-peek {
    color: #f4f0e8;
}

    .pub-card:hover .pub-peek i {
        transform: translateX(5px);
    }

/* ---- dialog ---- */
.pub-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 40px);
}

    .pub-modal[hidden] {
        display: none;
    }

.pub-backdrop {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,69,96,.1), transparent 55%), rgba(4,6,12,.84);
    backdrop-filter: blur(6px);
}

.pub-dialog {
    --pub: #ff4560;
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 34%) 1fr;
    width: min(980px, 100%);
    max-height: min(88vh, 720px);
    overflow: auto;
    outline: none;
    border-radius: 14px;
    background: #0b0f1a;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 40px 90px -20px rgba(0,0,0,.9);
}

.pub-close {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    color: #f4f0e8;
    background: rgba(8,11,19,.6);
    border: 1px solid rgba(255,255,255,.18);
    transition: background .2s, border-color .2s;
}

    .pub-close:hover, .pub-nav-btn:hover {
        background: var(--pub);
        border-color: var(--pub);
        color: #080b13;
    }

.pub-m-art {
    display: grid;
    place-items: center;
    padding: 36px 28px;
    background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--pub) 38%, transparent), transparent 68%), #080b13;
}

.pub-m-float {
    width: min(100%, 250px);
    animation: pubfloat 6s ease-in-out infinite;
}

.pub-m-book {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 3px 9px 9px 3px;
    overflow: hidden;
    box-shadow: 0 30px 60px -18px rgba(0,0,0,.9), 0 0 50px -8px color-mix(in srgb, var(--pub) 50%, transparent);
}

    .pub-m-book::before {
        content: '';
        position: absolute;
        z-index: 1;
        left: 0;
        top: 0;
        bottom: 0;
        width: 12px;
        background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(255,255,255,.2) 35%, transparent);
    }

    .pub-m-book img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@keyframes pubfloat {
    0%, 100% {
        transform: translateY(-5px);
    }

    50% {
        transform: translateY(7px);
    }
}

.pub-m-copy {
    display: flex;
    flex-direction: column;
    padding: 38px 38px 28px;
    min-width: 0;
}

.pub-m-kicker {
    font: 600 11px/1.3 ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pub);
    padding-right: 40px;
}

.pub-m-copy h3 {
    margin: 10px 0 8px;
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.1;
    color: #f4f0e8;
}

.pub-m-tag {
    margin: 0 0 22px;
    font-style: italic;
    color: rgba(244,240,232,.6);
}

.pub-m-acro {
    list-style: none;
    margin: 0 0 22px;
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    border-block: 1px solid rgba(255,255,255,.09);
}

    .pub-m-acro li {
        display: flex;
        align-items: baseline;
        font-size: 15px;
        color: rgba(244,240,232,.85);
    }

    .pub-m-acro b {
        font: 700 30px/1 ui-monospace, Menlo, Consolas, monospace;
        color: var(--pub);
        margin-right: 1px;
        text-shadow: 0 0 18px color-mix(in srgb, var(--pub) 60%, transparent);
    }

.pub-m-preview {
    margin: 0 0 22px;
    line-height: 1.7;
    color: rgba(244,240,232,.78);
}

.pub-m-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px 20px;
    margin: 0 0 26px;
}

    .pub-m-meta dt {
        font: 600 10px ui-monospace, Menlo, Consolas, monospace;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: rgba(244,240,232,.45);
    }

    .pub-m-meta dd {
        margin: 4px 0 0;
        color: #f4f0e8;
    }

.pub-m-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pub-m-nav {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.pub-nav-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    color: #f4f0e8;
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    transition: background .2s, border-color .2s, color .2s;
}

.pub-m-count {
    font: 600 11px ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: .1em;
    color: rgba(244,240,232,.55);
}

@media (max-width: 760px) {
    .pub-dialog {
        grid-template-columns: 1fr;
    }

    .pub-m-art {
        padding: 28px 20px 8px;
    }

    .pub-m-float {
        width: 140px;
    }

    .pub-m-copy {
        padding: 22px 22px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pub-m-float {
        animation: none;
    }

    .pub-cover img, .pub-peek i {
        transition: none;
    }
}
