/* =========================================================
   Bắp — portfolio
   Vàng nắng, giấy vụn, sticker và một chút nghịch ngợm.
   ========================================================= */

:root {
  --yellow: #fff1a8;
  --yellow-soft: #fff8dd;
  --yellow-bright: #ffd84d;
  --paper: #fffdf4;
  --ink: #241a0b;
  --ink-soft: #5b4c38;
  --line: rgba(36, 26, 11, 0.18);
  --orange: #ff8a00;
  --orange-deep: #a94500;
  --orange-soft: #ffe1bf;
  --peach: #ffdfc4;
  --purple: #9b7bff;
  --purple-deep: #5937a5;
  --lilac: #ede3ff;
  --pink: #ffb7c9;
  --mint: #dff3d8;
  --green: #1f6e54;
  --red: #a62b2b;
  --border: 2px solid var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--yellow-soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 3px;
}

.container {
  width: min(100% - (var(--pad) * 2), var(--container));
  margin-inline: auto;
}

.hand {
  font-family: var(--font-hand);
  font-weight: 400;
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  padding: 10px 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--yellow-bright);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

/* ---------------------------------------------------------
   Nút bấm
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border: var(--border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background 0.18s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 4px 4px 0 var(--orange);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--orange);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--orange);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-yellow {
  background: var(--yellow-bright);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--purple);
}

.btn-yellow:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--purple);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 253, 244, 0.42);
  color: var(--paper);
}

.btn-ghost:hover {
  background: rgba(255, 253, 244, 0.1);
  border-color: var(--paper);
}

.btn--small {
  padding: 9px 14px;
  font-size: 0.76rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--small svg {
  width: 15px;
  height: 15px;
}

.btn--small:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.18s;
}

.text-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s var(--ease);
}

.text-link:hover {
  color: var(--orange-deep);
}

.text-link:hover svg {
  transform: translateX(4px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--border);
  background: rgba(255, 248, 221, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  text-decoration: none;
  transform: rotate(-1.5deg);
}

.brand-mark {
  width: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.brand-dot {
  color: var(--orange-deep);
}

.brand-note {
  align-self: flex-end;
  margin-bottom: 7px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--orange-deep);
  color: var(--orange-deep);
  font-family: var(--font-hand);
  font-size: 0.98rem;
  line-height: 1;
  transform: rotate(-5deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.site-nav a {
  position: relative;
  padding: 7px 0 9px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.18s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2.5px;
  border-radius: 999px;
  background: var(--orange);
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1) rotate(-1deg);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-cv {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: var(--border);
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 2px 2px 0 var(--purple);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}

.header-cv svg {
  width: 15px;
  height: 15px;
}

.header-cv:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--purple);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: var(--border);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Menu mobile */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px clamp(24px, 8vw, 60px) 34px;
  overflow-y: auto;
  background:
    radial-gradient(rgba(36, 26, 11, 0.09) 1.2px, transparent 1.2px) 0 0 / 22px 22px,
    var(--yellow);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1.5px dashed rgba(36, 26, 11, 0.32);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-nav a span {
  color: var(--orange-deep);
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.mobile-nav a[aria-current="page"] {
  color: var(--orange-deep);
}

.mobile-menu-foot {
  margin-top: 40px;
}

.mobile-menu-foot .btn {
  width: 100%;
}

.mobile-menu-foot p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.25rem;
  text-align: center;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 6.5vw, 84px) 0 clamp(56px, 7vw, 100px);
  background:
    radial-gradient(rgba(36, 26, 11, 0.09) 1.15px, transparent 1.15px) 0 0 / 21px 21px,
    radial-gradient(circle at 82% 9%, rgba(255, 216, 77, 0.88) 0, rgba(255, 241, 168, 0) 43%),
    var(--yellow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -210px;
  width: 460px;
  height: 460px;
  border: 2px dashed rgba(89, 55, 165, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  align-items: center;
  gap: clamp(30px, 4vw, 60px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 710px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.78);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  transform: rotate(-1deg);
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2d9a64;
  box-shadow: 0 0 0 3px rgba(45, 154, 100, 0.16);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(45, 154, 100, 0.4);
  border-radius: inherit;
  animation: statusPulse 2.4s ease-out infinite;
}

.status-star {
  color: var(--orange-deep);
  font-size: 0.9rem;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-eyebrow .hand {
  display: inline-block;
  color: var(--orange-deep);
  font-size: 1.45rem;
  letter-spacing: 0;
  line-height: 1;
  text-transform: lowercase;
  transform: rotate(-4deg);
}

.hero-title {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(3.3rem, 6.5vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.hero-title-line {
  display: block;
}

.hero-title-line--accent {
  position: relative;
  padding-bottom: 0.16em;
  color: var(--orange-deep);
}

.highlight-word {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.hero-title-line--accent .highlight-word::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.06em;
  bottom: 0.08em;
  left: -0.06em;
  height: 0.3em;
  border-radius: 40% 50% 35% 45%;
  background: var(--yellow-bright);
  opacity: 0.7;
  transform: rotate(-1.5deg);
}

.title-underline {
  position: absolute;
  bottom: -0.02em;
  left: 1%;
  width: 93%;
  height: 0.2em;
  color: var(--purple);
  opacity: 0.95;
}

.title-underline path {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: drawLine 1.1s 0.65s var(--ease) forwards;
}

.hero-lead {
  max-width: 620px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.15vw, 1.05rem);
  line-height: 1.8;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 25px;
}

.hero-note {
  padding: 6px 11px;
  border: 1px dashed rgba(36, 26, 11, 0.3);
  border-radius: 7px;
  background: rgba(255, 253, 244, 0.38);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  transition:
    background 0.18s,
    transform 0.18s;
}

.hero-socials a:hover {
  background: var(--yellow-bright);
  transform: translateY(-2px) rotate(-4deg);
}

.hero-socials svg {
  width: 15px;
  height: 15px;
}

/* Cụm ảnh & sticker */

.hero-collage {
  position: relative;
  width: 100%;
  max-width: 540px;
  min-height: 590px;
  margin-left: auto;
}

.collage-sun {
  position: absolute;
  top: 42px;
  left: 50%;
  width: min(430px, 82%);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #ffe883 0, #ffd44a 60%, #ffc72e 100%);
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: inset 0 0 0 12px rgba(255, 253, 244, 0.22);
}

.collage-sun::after {
  content: "";
  position: absolute;
  inset: 19px;
  border: 2px dashed rgba(36, 26, 11, 0.2);
  border-radius: 50%;
}

.collage-note {
  position: absolute;
  z-index: 7;
  top: 6px;
  left: -14px;
  width: 150px;
  padding: 12px 13px 8px;
  border: 2px solid var(--ink);
  border-radius: 3px 12px 12px 12px;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(36, 26, 11, 0.82);
  color: var(--ink);
  transform: rotate(-6deg);
}

.collage-note .hand {
  display: block;
  color: var(--orange-deep);
  font-size: 1.18rem;
  line-height: 1;
}

.collage-note strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.collage-note svg {
  width: 60px;
  height: 38px;
  margin: 4px 0 0 auto;
  color: var(--purple-deep);
}

.logo-sticker {
  position: absolute;
  z-index: 4;
  top: 30px;
  right: -8px;
  width: min(332px, 72%);
  margin: 0;
  padding: 18px 15px 12px;
  border: var(--border);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(4.5deg);
}

.logo-sticker-inner {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 8px;
  border: 1.5px dashed rgba(36, 26, 11, 0.22);
  border-radius: 10px;
  background: #fffef9;
}

.logo-sticker img {
  width: 100%;
  height: auto;
}

.logo-sticker figcaption {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  text-align: center;
  transform: rotate(-1deg);
}

.avatar-card {
  position: absolute;
  z-index: 6;
  bottom: 16px;
  left: 4px;
  width: min(288px, 62%);
  margin: 0;
  padding: 14px 14px 13px;
  border: var(--border);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: rotate(-4deg);
}

.avatar-frame {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--lilac);
}

.avatar-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.avatar-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-inline: 3px;
}

.avatar-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.avatar-meta {
  color: var(--ink-soft);
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1;
}

.avatar-heart {
  position: absolute;
  top: -13px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  font-size: 1rem;
  transform: rotate(9deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.hero-sticker {
  position: absolute;
  z-index: 8;
  right: -2px;
  bottom: 57px;
  padding: 10px 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(5deg);
}

.hero-sticker span {
  color: var(--yellow);
}

.collage-spark {
  position: absolute;
  z-index: 3;
  color: var(--purple-deep);
  font-size: 1.7rem;
  line-height: 1;
  animation: twinkle 4s ease-in-out infinite;
}

.collage-spark--one {
  top: 8px;
  right: 21%;
  color: var(--orange-deep);
  font-size: 1.3rem;
}

.collage-spark--two {
  top: 52%;
  right: -8px;
  animation-delay: 1.5s;
}

.collage-dot {
  position: absolute;
  z-index: 3;
  top: 55%;
  left: 8px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
}

.washi {
  position: absolute;
  z-index: 3;
  top: -13px;
  left: 50%;
  width: 94px;
  height: 26px;
  border: 1px solid rgba(36, 26, 11, 0.13);
  background-color: var(--purple);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.28) 0 8px,
    transparent 8px 16px
  );
  opacity: 0.88;
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 2px 3px rgba(36, 26, 11, 0.1);
}

.washi--yellow {
  background-color: var(--yellow-bright);
}

.washi--purple {
  background-color: var(--purple);
}

.hero-doodle {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.hero-doodle--flower {
  top: 24px;
  right: 3.5vw;
  width: 64px;
  color: var(--orange-deep);
  opacity: 0.55;
  transform: rotate(14deg);
}

.hero-doodle--squiggle {
  bottom: 18px;
  left: 43%;
  width: 138px;
  color: var(--purple-deep);
  opacity: 0.35;
}

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

.marquee-band {
  position: relative;
  z-index: 5;
  width: 104%;
  margin-left: -2%;
  overflow: hidden;
  border-top: var(--border);
  border-bottom: var(--border);
  background: var(--orange);
  transform: rotate(-0.55deg);
}

.marquee-band--purple {
  background: var(--purple);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.3vw, 1.14rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
  white-space: nowrap;
}

.marquee-group i {
  color: var(--paper);
  font-style: normal;
  font-size: 0.8em;
}

.marquee-band--purple .marquee-group i {
  color: var(--yellow);
}

/* ---------------------------------------------------------
   Section chung
   --------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(70px, 8.5vw, 116px) 0;
}

section[id] {
  scroll-margin-top: 88px;
}

[data-edit] {
  white-space: pre-line;
}

.section--about {
  background:
    radial-gradient(rgba(36, 26, 11, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--yellow-soft);
}

.section--peach {
  background: var(--peach);
}

.section--lilac {
  background: var(--lilac);
}

.section--gallery {
  background:
    radial-gradient(rgba(36, 26, 11, 0.055) 1px, transparent 1px) 0 0 / 25px 25px,
    var(--yellow-soft);
}

.section--dark {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.section--scallop {
  --scallop-color: var(--peach);
}

.section--lilac.section--scallop {
  --scallop-color: var(--lilac);
}

.section--scallop::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -17px;
  right: 0;
  left: 0;
  height: 18px;
  background: radial-gradient(
      circle at 10px 18px,
      transparent 9px,
      var(--scallop-color) 9.5px
    )
    0 0 / 20px 18px repeat-x;
  pointer-events: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: clamp(28px, 3.5vw, 46px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-num {
  color: var(--orange-deep);
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  transform: rotate(-4deg);
}

.section-label .hand {
  font-size: 1.28rem;
  letter-spacing: 0;
  text-transform: none;
}

.label-line {
  display: block;
  width: clamp(28px, 5vw, 56px);
  height: 1.5px;
  background: currentColor;
  opacity: 0.35;
}

.label-star {
  color: var(--orange-deep);
  font-size: 0.8rem;
}

.section-aside {
  color: var(--ink-soft);
  font-size: 1.16rem;
  line-height: 1.2;
  transform: rotate(-1.5deg);
}

.section-title {
  color: var(--ink);
  font-size: clamp(2.05rem, 4.1vw, 3.7rem);
  line-height: 1.03;
}

.section-title em {
  color: var(--orange-deep);
  font-style: normal;
}

.section-title--big {
  font-size: clamp(2.45rem, 5vw, 4.4rem);
}

.section--dark .section-label,
.section--dark .section-aside {
  color: rgba(255, 253, 244, 0.56);
}

.section--dark .section-num {
  color: var(--yellow-bright);
}

.section--dark .label-line {
  background: rgba(255, 253, 244, 0.25);
}

.mini-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.mini-head h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  letter-spacing: -0.03em;
}

.mini-head p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 1.13rem;
  line-height: 1.2;
}

/* ---------------------------------------------------------
   Về tui
   --------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 372px minmax(0, 1fr);
  align-items: start;
  gap: clamp(38px, 6vw, 86px);
}

.profile-card {
  position: relative;
  padding: 26px 24px 29px;
  border: var(--border);
  border-radius: 20px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0 31px,
    rgba(36, 26, 11, 0.045) 31px 32px
  );
  box-shadow: var(--shadow);
  transform: rotate(-1.3deg);
}

.js .profile-card.reveal {
  transform: translateY(24px) rotate(-1.3deg);
}

.js .profile-card.reveal.is-visible {
  transform: rotate(-1.3deg);
}

.profile-tape {
  position: absolute;
  top: -12px;
  left: 31px;
  width: 88px;
  height: 24px;
  border: 1px solid rgba(36, 26, 11, 0.12);
  background-color: rgba(255, 183, 201, 0.82);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.28) 0 7px,
    transparent 7px 14px
  );
  transform: rotate(-7deg);
}

.profile-pin {
  position: absolute;
  top: -7px;
  right: 22px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 1px 1px 0 rgba(36, 26, 11, 0.7);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.profile-top img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border: var(--border);
  border-radius: 50%;
  background: var(--lilac);
  object-fit: cover;
}

.profile-hello {
  color: var(--orange-deep);
  font-size: 1rem;
  line-height: 1;
}

.profile-name {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
}

.profile-nickname {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.profile-nickname strong {
  color: var(--purple-deep);
  font-weight: 700;
}

.fact-list {
  margin-top: 23px;
  border-top: 1.5px dashed rgba(36, 26, 11, 0.3);
}

.fact-list > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(36, 26, 11, 0.16);
}

.fact-list > div:last-child {
  border-bottom: 0;
}

.fact-list dt {
  color: var(--ink-soft);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.fact-list dd {
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.45;
}

.profile-stamp {
  position: absolute;
  right: -17px;
  bottom: 18px;
  display: grid;
  place-content: center;
  width: 92px;
  height: 92px;
  border: 2px dashed var(--orange-deep);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--orange-deep);
  font-family: var(--font-hand);
  font-size: 0.82rem;
  line-height: 1.02;
  text-align: center;
  transform: rotate(11deg);
}

.profile-stamp strong {
  font-size: 0.9rem;
}

.about-copy {
  max-width: 680px;
  padding-top: 4px;
}

.about-copy .section-title em {
  color: var(--purple-deep);
}

.about-copy > p {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.82;
}

.about-copy > p:first-of-type {
  color: var(--ink);
  font-size: 1.03rem;
}

.quote-card {
  position: relative;
  max-width: 540px;
  margin: 28px 0 24px;
  padding: 20px 38px 19px 52px;
  border: var(--border);
  border-radius: 4px 17px 17px 17px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-0.7deg);
}

.quote-card p {
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  line-height: 1.2;
}

.quote-mark {
  position: absolute;
  top: 3px;
  left: 15px;
  color: var(--orange-deep);
  font-family: var(--font-hand);
  font-size: 3.8rem;
  line-height: 1;
}

.quote-star {
  position: absolute;
  right: 13px;
  bottom: 9px;
  color: var(--purple-deep);
  font-size: 0.9rem;
}

.hobby-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.hobby-line strong {
  color: var(--ink);
  font-weight: 600;
}

.hobby-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  font-size: 0.8rem;
}

/* Kỹ năng */

.skills-block {
  margin-top: clamp(55px, 7vw, 88px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  position: relative;
  padding: 20px 20px 23px;
  border: var(--border);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1deg);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.skill-card:nth-child(2) {
  transform: rotate(1.2deg);
}

.skill-card:nth-child(3) {
  transform: rotate(-0.5deg);
}

.skill-card:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 7px 7px 0 var(--ink);
}

.skill-card--orange {
  background: var(--orange-soft);
}

.skill-card--purple {
  background: var(--lilac);
}

.skill-card--green {
  background: var(--mint);
}

.skill-card::after {
  content: "✦";
  position: absolute;
  top: 13px;
  right: 16px;
  color: rgba(36, 26, 11, 0.32);
  font-size: 0.85rem;
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.skill-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  transform: rotate(-4deg);
}

.skill-icon svg {
  width: 19px;
  height: 19px;
}

.skill-card h4 {
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.skill-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.skill-card li {
  padding: 4px 10px;
  border: 1.5px solid rgba(36, 26, 11, 0.8);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.54);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
}

.mini-head-sticker {
  display: inline-block;
  padding: 4px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1.4;
  transform: rotate(4deg);
}

.mini-head-doodle {
  width: 100px;
  color: var(--orange-deep);
}

.mini-head-doodle svg {
  width: 100%;
}

/* Giải thưởng */

.awards-block {
  margin-top: clamp(55px, 7vw, 86px);
}

.awards-list {
  border-top: 2px solid var(--ink);
  list-style: none;
}

.award-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 26px;
  padding: 21px 10px;
  border-bottom: 1.5px solid rgba(36, 26, 11, 0.27);
  transition:
    background 0.2s,
    padding 0.25s var(--ease);
}

.award-item:hover {
  padding-left: 16px;
  background: rgba(255, 253, 244, 0.38);
}

.award-date {
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.award-copy strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
}

.award-copy span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.award-star {
  color: var(--purple-deep);
  font-size: 1.45rem;
  text-align: center;
  transition: transform 0.3s var(--ease);
}

.award-item:hover .award-star {
  transform: rotate(45deg) scale(1.2);
}

/* ---------------------------------------------------------
   Sản phẩm
   --------------------------------------------------------- */

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: clamp(32px, 4vw, 52px);
}

.split-intro-copy {
  max-width: 510px;
  padding-bottom: 4px;
}

.split-intro-copy p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.8;
}

.split-intro-note {
  margin-top: 12px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 45px);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  min-height: 450px;
  overflow: hidden;
  border: var(--border);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 var(--ink);
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 36px);
  border-right: var(--border);
  background:
    radial-gradient(rgba(36, 26, 11, 0.1) 1px, transparent 1px) 0 0 / 17px 17px,
    var(--peach);
}

.project-card--lilac .project-visual {
  background:
    radial-gradient(rgba(36, 26, 11, 0.09) 1px, transparent 1px) 0 0 / 17px 17px,
    var(--lilac);
}

.project-card--yellow .project-visual {
  background:
    radial-gradient(rgba(36, 26, 11, 0.09) 1px, transparent 1px) 0 0 / 17px 17px,
    var(--yellow);
}

.project-card--mint .project-visual {
  background:
    radial-gradient(rgba(36, 26, 11, 0.09) 1px, transparent 1px) 0 0 / 17px 17px,
    var(--mint);
}

.project-card.is-reverse .project-visual {
  order: 2;
  border-right: 0;
  border-left: var(--border);
}

.project-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  border: var(--border);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 5px 5px 0 rgba(36, 26, 11, 0.25);
  object-fit: cover;
  transform: rotate(-1.3deg);
}

.project-card.is-reverse .project-visual img {
  transform: rotate(1.3deg);
}

.project-sticker {
  position: absolute;
  z-index: 3;
  top: clamp(12px, 2vw, 22px);
  left: clamp(12px, 2vw, 22px);
  padding: 5px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow-bright);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1.2;
  transform: rotate(-5deg);
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(26px, 3.8vw, 46px);
}

.project-role {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid rgba(36, 26, 11, 0.35);
  border-radius: 999px;
  color: var(--orange-deep);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.project-content h3 {
  margin-top: 10px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 0.98;
}

.project-description {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.75;
}

.project-bullets {
  margin-top: 14px;
  list-style: none;
}

.project-bullets li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.6;
}

.project-bullets li + li {
  margin-top: 5px;
}

.project-bullets li::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--purple-deep);
  font-size: 0.65rem;
}

.tag-row,
.design-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
}

.tag {
  padding: 3px 8px;
  border: 1.5px solid rgba(36, 26, 11, 0.72);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.7);
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1.5;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 21px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.18s;
}

.project-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s var(--ease);
}

.project-link:hover {
  color: var(--orange-deep);
}

.project-link:hover svg {
  transform: translate(2px, -2px);
}

.section-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1.5px dashed rgba(36, 26, 11, 0.35);
}

.section-foot p {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

/* ---------------------------------------------------------
   Khung web
   --------------------------------------------------------- */

.free-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1.4;
  transform: rotate(2deg);
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 32px);
}

.design-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--border);
  border-radius: 21px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.design-card:hover {
  transform: translateY(-5px) rotate(-0.25deg);
  box-shadow: 9px 9px 0 var(--ink);
}

body.is-editing .design-card:hover {
  transform: none;
}

.design-preview {
  position: relative;
  overflow: hidden;
  border-bottom: var(--border);
  background: var(--yellow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 31px;
  padding: 0 11px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--yellow-soft);
}

.browser-dots {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.browser-dots i {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(36, 26, 11, 0.45);
  border-radius: 50%;
  background: var(--peach);
}

.browser-dots i:nth-child(2) {
  background: var(--yellow-bright);
}

.browser-dots i:nth-child(3) {
  background: var(--mint);
}

.browser-url {
  overflow: hidden;
  flex: 1;
  padding: 2px 9px;
  border: 1px solid rgba(36, 26, 11, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.75);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-preview > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.design-card:hover .design-preview > img {
  transform: scale(1.015);
}

.design-format {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.5;
}

.design-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 21px 21px;
}

.design-body h3 {
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  line-height: 1;
}

.design-description {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.7;
}

.design-body .design-tags {
  margin-top: 14px;
}

.design-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
}

.design-demo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.18s;
}

.design-demo svg {
  width: 13px;
  height: 13px;
}

.design-demo:hover {
  color: var(--orange-deep);
}

.design-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 2px 2px 0 var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}

.design-download svg {
  width: 13px;
  height: 13px;
}

.design-download:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--orange);
}

.designs-more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 35px;
}

.designs-more-note {
  color: var(--ink-soft);
  font-size: 1.1rem;
  transform: rotate(-2deg);
}

.design-add-card {
  display: none;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed var(--ink);
  border-radius: 21px;
  background: rgba(255, 253, 244, 0.25);
  color: var(--ink-soft);
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

body.is-editing .design-add-card {
  display: flex;
}

.design-add-card:hover {
  background: rgba(255, 253, 244, 0.55);
  transform: translateY(-3px);
}

.design-add-card .plus {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: var(--border);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.design-add-card strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.design-add-card span:last-child {
  max-width: 230px;
  font-size: 0.76rem;
  line-height: 1.5;
}

.gallery-empty {
  padding: 40px;
  border: 2px dashed var(--ink);
  border-radius: 18px;
  background: rgba(255, 253, 244, 0.35);
  color: var(--ink-soft);
  text-align: center;
}

.gallery-empty .hand {
  color: var(--ink);
  font-size: 1.4rem;
}

.gallery-empty p {
  margin-top: 4px;
  font-size: 0.84rem;
}

/* ---------------------------------------------------------
   Trang khung web
   --------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 clamp(70px, 8vw, 104px);
  background:
    radial-gradient(rgba(36, 26, 11, 0.085) 1.1px, transparent 1.1px) 0 0 / 22px 22px,
    radial-gradient(circle at 82% 40%, rgba(255, 216, 77, 0.85) 0, rgba(255, 241, 168, 0) 38%),
    var(--yellow);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 26%;
  right: -150px;
  width: 420px;
  height: 420px;
  border: 2px dashed rgba(89, 55, 165, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumbs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(26px, 4vw, 42px);
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.breadcrumbs a {
  padding-bottom: 1px;
  border-bottom: 1px dotted rgba(36, 26, 11, 0.4);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--orange-deep);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  align-items: center;
  gap: clamp(35px, 5vw, 70px);
}

.page-hero-copy {
  max-width: 690px;
}

.page-title {
  margin-top: 19px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.page-title .highlight-word {
  color: var(--orange-deep);
}

.page-title .highlight-word::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.05em;
  bottom: 0.07em;
  left: -0.05em;
  height: 0.27em;
  border-radius: 50% 45% 40% 55%;
  background: var(--yellow-bright);
  opacity: 0.68;
  transform: rotate(-1deg);
}

.page-lead {
  max-width: 590px;
  margin-top: 23px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}

.page-hero-note {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.3;
}

.page-hero-art {
  position: relative;
  min-height: 510px;
  max-width: 560px;
  width: 100%;
  margin-left: auto;
}

.art-sun {
  position: absolute;
  top: 58px;
  left: 52%;
  width: min(390px, 72%);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #ffd44a;
  transform: translateX(-50%) rotate(6deg);
  box-shadow: inset 0 0 0 13px rgba(255, 253, 244, 0.2);
}

.art-sun::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(36, 26, 11, 0.17);
  border-radius: 50%;
}

.postcard {
  position: absolute;
  width: 76%;
  margin: 0;
  padding: 12px 12px 8px;
  border: var(--border);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.postcard img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  object-fit: cover;
}

.postcard figcaption {
  margin-top: 4px;
  padding-right: 3px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  text-align: right;
}

.postcard--back {
  top: 40px;
  right: 0;
  z-index: 2;
  transform: rotate(-4deg);
}

.postcard--front {
  bottom: 1px;
  left: 0;
  z-index: 3;
  transform: rotate(3.5deg);
  box-shadow: var(--shadow-lg);
}

.art-sticker {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: var(--border);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 0.96;
  text-align: center;
  transform: rotate(9deg);
}

.art-sticker span {
  font-family: var(--font-hand);
  font-size: 0.94rem;
  font-weight: 400;
}

.art-spark {
  position: absolute;
  z-index: 5;
  color: var(--purple-deep);
  font-size: 1.6rem;
  animation: twinkle 4s ease-in-out infinite;
}

.art-spark--one {
  top: 10px;
  left: 19%;
  color: var(--orange-deep);
  font-size: 1.2rem;
}

.art-spark--two {
  top: 53%;
  right: -2px;
  animation-delay: 1.4s;
}

.page-hero-doodle {
  position: absolute;
  pointer-events: none;
}

.page-hero-doodle--star {
  top: 18%;
  right: 5%;
  color: var(--orange-deep);
  font-size: 1.5rem;
  opacity: 0.68;
}

.page-hero-doodle--squiggle {
  bottom: 3%;
  left: 5%;
  width: 150px;
  color: var(--purple-deep);
  opacity: 0.28;
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.gallery-note {
  padding-bottom: 6px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.2;
  transform: rotate(-2deg);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 29px;
}

.filter-btn {
  padding: 6px 13px;
  border: 1.5px solid rgba(36, 26, 11, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.5);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--yellow);
}

.designs-cta {
  padding-top: clamp(60px, 7vw, 90px);
  padding-bottom: clamp(60px, 7vw, 90px);
}

.designs-cta-inner {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 45px);
}

.cta-flower {
  width: 105px;
}

.cta-flower svg {
  width: 100%;
  transform: rotate(-8deg);
}

.designs-cta-kicker {
  margin-bottom: 4px;
  color: var(--orange-deep);
  font-size: 1.25rem;
  line-height: 1.2;
  transform: rotate(-1.5deg);
}

.designs-cta-copy p {
  max-width: 600px;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

.designs-cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.designs-cta-action p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.2;
  transform: rotate(1deg);
}

/* ---------------------------------------------------------
   Liên hệ
   --------------------------------------------------------- */

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.contact-copy {
  max-width: 700px;
}

.contact-copy .section-head {
  margin-bottom: 29px;
}

.contact-title {
  color: var(--paper);
  font-size: clamp(2.7rem, 5.7vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.contact-title em {
  color: var(--yellow-bright);
  font-style: normal;
  text-shadow: 3px 3px 0 rgba(155, 123, 255, 0.28);
}

.contact-text {
  max-width: 590px;
  margin-top: 23px;
  color: rgba(255, 253, 244, 0.66);
  font-size: 0.93rem;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.contact-copy .btn-yellow {
  font-size: 0.8rem;
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
  color: rgba(255, 253, 244, 0.52);
  font-size: 0.71rem;
}

.contact-doodle {
  position: absolute;
  color: var(--purple);
  opacity: 0.5;
  pointer-events: none;
}

.contact-doodle--one {
  top: 10%;
  right: 7%;
  font-size: 2.1rem;
  transform: rotate(12deg);
}

.contact-doodle--two {
  bottom: 12%;
  left: 4%;
  font-size: 1.25rem;
}

.contact-card {
  position: relative;
  width: min(100%, 370px);
  margin-left: auto;
  padding: 23px 23px 20px;
  border: var(--border);
  border-radius: 20px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(36, 26, 11, 0.055) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
  box-shadow: 10px 10px 0 var(--purple);
  color: var(--ink);
  text-align: center;
  transform: rotate(1.5deg);
}

.contact-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 100px;
  height: 26px;
  border: 1px solid rgba(36, 26, 11, 0.12);
  background-color: rgba(255, 216, 77, 0.85);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.28) 0 8px,
    transparent 8px 16px
  );
  transform: translateX(-50%) rotate(3deg);
}

.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--orange-deep);
  font-size: 1.15rem;
  line-height: 1.2;
}

.contact-card-top span {
  color: var(--purple-deep);
  font-size: 0.9rem;
}

.contact-avatar {
  width: 112px;
  height: 112px;
  margin: 7px auto 10px;
  border: var(--border);
  border-radius: 50%;
  background: var(--lilac);
  object-fit: cover;
}

.contact-card-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.contact-card-name strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.contact-card-name span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.contact-card-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
}

.contact-card-links a,
.contact-card-links button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
}

.contact-card-links a:hover,
.contact-card-links button:hover {
  background: var(--yellow-bright);
  transform: translateX(2px);
}

.contact-card-links svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.contact-card-links .mini-arrow {
  width: 13px;
  height: 13px;
  margin-left: auto;
  opacity: 0.6;
}

.contact-card-links .copy-ok {
  display: none;
  margin-left: auto;
  color: var(--green);
  font-weight: 700;
}

.contact-card-links button.is-copied .copy-ok {
  display: inline;
}

.contact-card-links button.is-copied .mini-arrow {
  display: none;
}

.contact-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.contact-stamp {
  position: absolute;
  right: -17px;
  bottom: -19px;
  display: grid;
  place-items: center;
  width: 77px;
  height: 77px;
  border: 2px dashed var(--orange-deep);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--orange-deep);
  font-family: var(--font-hand);
  font-size: 0.78rem;
  line-height: 1;
  text-align: center;
  transform: rotate(11deg);
}

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

.site-footer {
  border-top: 1px solid rgba(255, 253, 244, 0.12);
  background: #1a1207;
  color: rgba(255, 253, 244, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 25px;
  padding-bottom: 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark--small {
  width: 25px;
}

.footer-brand p {
  font-size: 0.68rem;
  white-space: nowrap;
}

.footer-note {
  font-size: 1.02rem;
  line-height: 1.2;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.68rem;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.18s;
}

.footer-links a:hover {
  color: var(--yellow-bright);
}

.footer-edit {
  padding: 0;
  border: 0;
  border-bottom: 1px dotted rgba(255, 253, 244, 0.38);
  background: none;
  color: rgba(255, 253, 244, 0.62);
  font-size: 0.68rem;
  cursor: pointer;
  transition: color 0.18s;
}

.footer-edit:hover {
  color: var(--yellow-bright);
}

/* ---------------------------------------------------------
   Toast + noscript
   --------------------------------------------------------- */

.toast {
  position: fixed;
  z-index: 300;
  bottom: 22px;
  left: 50%;
  max-width: min(calc(100vw - 32px), 480px);
  padding: 11px 18px;
  border: var(--border);
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 4px 4px 0 var(--purple);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  transform: translateX(-50%);
}

.toast.toast--error {
  background: var(--red);
  color: #fff;
  box-shadow: 4px 4px 0 #521010;
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 90;
  padding: 14px 18px;
  border: var(--border);
  border-radius: 12px;
  background: var(--yellow-bright);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------------------------------------------------------
   Hiệu ứng
   --------------------------------------------------------- */

.js :where(.reveal) {
  opacity: 0;
  transform: translateY(23px);
  transition:
    opacity 0.68s var(--ease),
    transform 0.68s var(--ease);
}

.js :where(.reveal.is-visible) {
  opacity: 1;
  transform: none;
}

.js .hero-copy {
  animation: fadeIn 0.75s var(--ease) both;
}

.js .hero-collage {
  animation: collageIn 0.9s 0.15s var(--ease) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes collageIn {
  from {
    opacity: 0;
    transform: translateY(22px) rotate(1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

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

@keyframes statusPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.6);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.12) rotate(10deg);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------
   Modal & trình chỉnh sửa
   --------------------------------------------------------- */

.modal {
  width: min(calc(100vw - 28px), 560px);
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: var(--border);
  border-radius: 21px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 11px 11px 0 var(--ink);
}

.modal--item {
  width: min(calc(100vw - 28px), 690px);
}

.modal[open] {
  animation: modalIn 0.24s var(--ease);
}

.modal::backdrop {
  background: rgba(36, 26, 11, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 23px 16px;
  border-bottom: 1.5px dashed rgba(36, 26, 11, 0.32);
  background:
    radial-gradient(rgba(36, 26, 11, 0.08) 0.9px, transparent 0.9px) 0 0 / 14px 14px,
    var(--yellow);
}

.modal-head-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1;
}

.modal-head-copy p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  line-height: 1.5;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s,
    background 0.18s;
}

.modal-close:hover {
  background: var(--pink);
  transform: rotate(8deg);
}

.modal-body {
  max-height: min(64vh, 580px);
  padding: 20px 23px;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 23px 20px;
  border-top: 1.5px dashed rgba(36, 26, 11, 0.26);
}

.modal-foot .btn {
  padding: 10px 16px;
  font-size: 0.8rem;
}

.modal-foot .local-btn {
  margin-right: auto;
}

.token-advanced {
  padding: 2px 12px 10px;
}

.saved-token-note strong {
  font-weight: 700;
}

body.is-editing [contenteditable="true"]:empty::before {
  content: "Bấm để nhập...";
  color: var(--ink-soft);
  font-family: var(--font-hand);
  font-size: 0.8em;
  opacity: 0.45;
  pointer-events: none;
}

.editor-intro {
  margin-bottom: 15px;
  color: var(--ink-soft);
  font-size: 0.79rem;
  line-height: 1.65;
}

.editor-intro strong {
  color: var(--ink);
}

.token-steps {
  margin-top: 13px;
  border: 1.5px solid rgba(36, 26, 11, 0.22);
  border-radius: 10px;
  background: rgba(255, 241, 168, 0.35);
}

.token-steps summary {
  padding: 9px 11px;
  color: var(--purple-deep);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.token-steps ol {
  margin: 0;
  padding: 0 14px 12px 31px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.65;
}

.token-steps li + li {
  margin-top: 4px;
}

.token-steps a {
  color: var(--purple-deep);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 13px;
}

.field > span,
.field-label {
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid rgba(36, 26, 11, 0.44);
  border-radius: 9px;
  background: #fffdf8;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.5;
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(255, 138, 0, 0.28);
}

.field input[type="file"] {
  padding: 7px;
  font-size: 0.72rem;
}

.field input[type="file"]::file-selector-button {
  margin-right: 9px;
  padding: 5px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.field-help {
  color: var(--ink-soft);
  font-size: 0.65rem;
  line-height: 1.5;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--orange-deep);
}

.form-error {
  margin-top: 10px;
  padding: 8px 11px;
  border: 1.5px solid var(--red);
  border-radius: 8px;
  background: #ffe5e3;
  color: #781919;
  font-size: 0.72rem;
  line-height: 1.5;
}

.saved-token-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  padding: 8px 10px;
  border: 1.5px solid rgba(31, 110, 84, 0.3);
  border-radius: 8px;
  background: var(--mint);
  color: var(--green);
  font-size: 0.72rem;
  line-height: 1.5;
}

.editor-token-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.delete-token {
  padding: 0;
  border: 0;
  border-bottom: 1px dotted var(--red);
  background: none;
  color: var(--red);
  font-size: 0.66rem;
  cursor: pointer;
}

.mode-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.mode-separator::before,
.mode-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(36, 26, 11, 0.18);
}

.local-mode-note {
  padding: 10px 12px;
  border: 1.5px dashed rgba(36, 26, 11, 0.3);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.69rem;
  line-height: 1.6;
}

.local-mode-note strong {
  color: var(--ink);
}

.item-preview-thumb {
  width: 100%;
  max-height: 155px;
  overflow: hidden;
  margin-bottom: 9px;
  border: 1.5px solid rgba(36, 26, 11, 0.22);
  border-radius: 8px;
  background: var(--yellow-soft);
}

.item-preview-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.item-form-section {
  margin: 18px 0 11px;
  padding-top: 14px;
  border-top: 1.5px dashed rgba(36, 26, 11, 0.22);
}

.item-form-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.item-form-section h3 {
  margin-bottom: 9px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

/* Thanh chỉnh sửa */

.editor-bar {
  position: fixed;
  z-index: 150;
  bottom: 16px;
  left: 50%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 9px;
  border: var(--border);
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--orange);
  transform: translateX(-50%);
}

.editor-mode {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px 0 4px;
  border-right: 1px dashed rgba(255, 253, 244, 0.26);
  color: var(--yellow);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.editor-mode .status-dot {
  background: var(--yellow-bright);
  box-shadow: 0 0 0 3px rgba(255, 216, 77, 0.16);
}

.editor-mode .status-dot::after {
  border-color: rgba(255, 216, 77, 0.4);
}

.editor-status-text {
  max-width: 200px;
  overflow: hidden;
  color: rgba(255, 253, 244, 0.62);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.editor-actions button {
  padding: 6px 10px;
  border: 1.5px solid rgba(255, 253, 244, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}

.editor-actions button:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.editor-actions button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.editor-actions .save-btn {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--orange);
}

.editor-actions .save-btn:hover {
  background: var(--yellow-bright);
  color: var(--ink);
}

.editor-actions .cancel-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

body.is-editing {
  padding-bottom: 88px;
}

body.is-editing [data-edit] {
  border-radius: 4px;
  cursor: text;
  transition:
    background 0.15s,
    outline-color 0.15s;
}

body.is-editing [data-edit]:hover {
  outline: 2px dashed rgba(255, 138, 0, 0.55);
  outline-offset: 3px;
  background: rgba(255, 255, 255, 0.35);
}

body.is-editing [data-edit]:focus {
  outline: 2px solid var(--purple-deep);
  outline-offset: 3px;
  background: rgba(255, 253, 244, 0.9);
}

body.is-editing a:not(.editor-bar a) {
  cursor: text;
}

.item-admin {
  position: absolute;
  z-index: 10;
  top: 12px;
  right: 12px;
  display: none;
  gap: 6px;
}

body.is-editing .item-admin {
  display: flex;
}

.item-admin button {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s;
}

.item-admin button:hover {
  transform: translateY(-2px);
  background: var(--yellow-bright);
}

.item-admin button[data-admin-action="delete"]:hover {
  background: var(--pink);
}

.item-admin svg {
  width: 14px;
  height: 14px;
}

/* Popup xác nhận nhỏ (native) vẫn dùng confirm để đơn giản */

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

@media (max-width: 1100px) {
  .site-nav {
    gap: 17px;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    gap: 26px;
  }

  .hero-title {
    font-size: clamp(3.1rem, 6vw, 5.2rem);
  }

  .hero-collage {
    min-height: 535px;
  }

  .logo-sticker {
    width: 72%;
  }

  .avatar-card {
    width: 61%;
  }

  .about-grid {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 45px;
  }

  .profile-stamp {
    right: -13px;
    width: 82px;
    height: 82px;
    font-size: 0.75rem;
  }

  .designs-cta-inner {
    grid-template-columns: 90px minmax(0, 1fr) auto;
  }

  .cta-flower {
    width: 88px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    min-height: 68px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-title {
    font-size: clamp(3.6rem, 10vw, 6rem);
  }

  .hero-collage {
    min-height: 570px;
    max-width: 590px;
    margin: 0 auto;
  }

  .collage-sun {
    width: min(430px, 76%);
  }

  .logo-sticker {
    width: min(350px, 60%);
    right: 1%;
  }

  .avatar-card {
    width: min(300px, 54%);
    left: 1%;
  }

  .hero-sticker {
    right: 1%;
    bottom: 35px;
  }

  .collage-note {
    left: 2%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .profile-card {
    width: min(100%, 560px);
  }

  .about-copy {
    max-width: none;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .project-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-visual {
    min-height: 310px;
    border-right: 0;
    border-bottom: var(--border);
  }

  .project-card.is-reverse .project-visual {
    order: 0;
    border-left: 0;
    border-bottom: var(--border);
  }

  .project-content {
    padding: 30px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .page-hero-art {
    max-width: 560px;
    min-height: 470px;
    margin-inline: auto;
  }

  .designs-cta-inner {
    grid-template-columns: 85px minmax(0, 1fr);
  }

  .designs-cta-action {
    grid-column: 2;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .contact-card {
    margin-inline: auto;
  }

  .footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 9px;
  }

  .footer-note {
    width: 100%;
    order: 3;
    font-size: 0.94rem;
  }
}

@media (max-width: 680px) {
  :root {
    --pad: 19px;
  }

  .header-inner {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .brand-text {
    font-size: 1.8rem;
  }

  .brand-mark {
    width: 31px;
  }

  .brand-note {
    display: none;
  }

  .header-cv {
    padding: 8px 12px;
  }

  .header-cv span {
    display: none;
  }

  .header-cv svg {
    width: 17px;
    height: 17px;
  }

  .header-cv {
    width: 39px;
    height: 39px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }

  .menu-toggle {
    width: 39px;
    height: 39px;
  }

  .hero {
    padding-top: 32px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .hero-lead {
    margin-top: 21px;
    font-size: 0.9rem;
  }

  .hero-actions .btn {
    padding: 12px 17px;
    font-size: 0.82rem;
  }

  .hero-meta {
    gap: 9px;
  }

  .hero-note {
    font-size: 0.63rem;
  }

  .hero-collage {
    min-height: 465px;
    max-width: 100%;
  }

  .collage-sun {
    top: 38px;
    width: 76%;
  }

  .collage-note {
    top: 0;
    left: 0;
    width: 126px;
    padding: 9px 10px 6px;
  }

  .collage-note .hand {
    font-size: 1rem;
  }

  .collage-note strong {
    font-size: 1.02rem;
  }

  .collage-note svg {
    width: 47px;
    height: 30px;
  }

  .logo-sticker {
    top: 25px;
    right: 0;
    width: 65%;
    padding: 13px 10px 8px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .logo-sticker-inner {
    min-height: 110px;
    padding: 4px;
  }

  .logo-sticker figcaption {
    font-size: 0.9rem;
  }

  .avatar-card {
    bottom: 3px;
    left: 0;
    width: 55%;
    padding: 10px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .avatar-card figcaption {
    margin-top: 6px;
  }

  .avatar-name {
    font-size: 1.45rem;
  }

  .avatar-meta {
    font-size: 0.82rem;
  }

  .avatar-heart {
    top: -11px;
    right: 10px;
    width: 29px;
    height: 29px;
  }

  .hero-sticker {
    right: 0;
    bottom: 29px;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .collage-spark--two {
    right: 0;
  }

  .hero-doodle--flower {
    display: none;
  }

  .hero-doodle--squiggle {
    width: 100px;
    left: auto;
    right: 8%;
  }

  .marquee-group {
    gap: 17px;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    align-items: flex-start;
    margin-bottom: 26px;
  }

  .section-aside {
    display: none;
  }

  .section-title,
  .section-title--big {
    font-size: clamp(2rem, 8.7vw, 2.85rem);
  }

  .mini-head {
    align-items: flex-start;
  }

  .mini-head-sticker {
    display: none;
  }

  .mini-head-doodle {
    width: 70px;
  }

  .profile-card {
    padding: 23px 18px 24px;
  }

  .profile-stamp {
    right: -7px;
    bottom: 15px;
    width: 72px;
    height: 72px;
    font-size: 0.67rem;
  }

  .fact-list > div {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .quote-card {
    padding: 18px 20px 17px 43px;
  }

  .quote-mark {
    left: 11px;
    font-size: 3.2rem;
  }

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

  .skill-card:nth-child(3) {
    grid-column: auto;
  }

  .award-item {
    grid-template-columns: 1fr 25px;
    gap: 4px 12px;
    padding: 17px 3px;
  }

  .award-date {
    grid-column: 1;
    font-size: 1.15rem;
  }

  .award-copy {
    grid-column: 1;
  }

  .award-star {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .award-copy strong {
    font-size: 0.88rem;
  }

  .split-intro {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .split-intro-copy p {
    font-size: 0.86rem;
  }

  .project-visual {
    min-height: 220px;
    padding: 21px;
  }

  .project-content {
    padding: 24px 21px 29px;
  }

  .project-content h3 {
    font-size: 2rem;
  }

  .project-sticker {
    top: 9px;
    left: 9px;
    font-size: 0.86rem;
  }

  .section-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .designs-more {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    text-align: center;
  }

  .designs-more-note {
    font-size: 1rem;
  }

  .designs-more .btn {
    width: 100%;
  }

  .design-add-card {
    min-height: 260px;
  }

  .page-hero {
    padding-top: 23px;
    padding-bottom: 58px;
  }

  .breadcrumbs {
    margin-bottom: 27px;
  }

  .page-title {
    font-size: clamp(2.75rem, 13vw, 4.2rem);
  }

  .page-lead {
    font-size: 0.9rem;
  }

  .page-hero-art {
    min-height: 350px;
  }

  .postcard {
    width: 77%;
    padding: 8px 8px 5px;
  }

  .postcard figcaption {
    font-size: 0.92rem;
  }

  .postcard--back {
    top: 27px;
  }

  .postcard--front {
    bottom: 4px;
  }

  .art-sticker {
    width: 77px;
    height: 77px;
    right: 0;
    bottom: 0;
    font-size: 0.86rem;
  }

  .art-sticker span {
    font-size: 0.74rem;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .gallery-note {
    font-size: 1rem;
  }

  .filter-bar {
    gap: 6px;
    margin-bottom: 22px;
  }

  .filter-btn {
    padding: 5px 10px;
    font-size: 0.67rem;
  }

  .designs-cta-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 20px;
  }

  .cta-flower {
    width: 76px;
  }

  .designs-cta-action {
    grid-column: auto;
    align-items: flex-start;
    width: 100%;
  }

  .designs-cta-action .btn {
    width: 100%;
  }

  .contact-title {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

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

  .contact-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.76rem;
  }

  .contact-card {
    width: calc(100% - 18px);
    margin-left: 0;
  }

  .contact-stamp {
    right: -9px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 12px;
  }

  .toast {
    bottom: 100px;
  }

  .modal {
    max-height: calc(100vh - 20px);
  }

  .modal-head {
    padding: 17px 18px 13px;
  }

  .modal-body {
    max-height: 60vh;
    padding: 17px 18px;
  }

  .modal-foot {
    padding: 13px 18px 17px;
  }

  .modal-foot .btn {
    padding: 9px 13px;
    font-size: 0.74rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .editor-bar {
    bottom: 8px;
    width: calc(100vw - 16px);
    max-width: none;
    padding: 7px;
    gap: 6px;
    justify-content: space-between;
    border-radius: 13px;
  }

  .editor-mode {
    padding-right: 5px;
    font-size: 0.62rem;
  }

  .editor-status-text {
    display: none;
  }

  .editor-actions {
    justify-content: flex-end;
    gap: 4px;
  }

  .editor-actions button {
    padding: 5px 8px;
    font-size: 0.6rem;
  }

  body.is-editing {
    padding-bottom: 116px;
  }

  .mobile-menu {
    padding-top: 91px;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-collage {
    min-height: 420px;
  }

  .collage-note {
    width: 113px;
  }

  .collage-note strong {
    font-size: 0.94rem;
  }

  .logo-sticker {
    width: 65%;
  }

  .avatar-card {
    width: 55%;
  }

  .hero-sticker {
    bottom: 24px;
  }

  .project-visual {
    min-height: 195px;
  }

  .page-hero-art {
    min-height: 315px;
  }

  .postcard {
    width: 80%;
  }

  .art-sun {
    width: 77%;
  }

  .design-body {
    padding: 17px;
  }

  .design-actions {
    gap: 8px;
  }

  .contact-card {
    padding-inline: 17px;
  }

  .contact-stamp {
    width: 65px;
    height: 65px;
    font-size: 0.68rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .marquee-track {
    animation: none;
  }

  .title-underline path {
    stroke-dashoffset: 0;
  }
}
