:root {
  --bg: #efe5dc;
  --bg-soft: #f7eee7;
  --paper: #f8f0e8;
  --paper-2: #eaded5;
  --text: #171514;
  --text-soft: #5f5550;
  --muted: #9b8b82;
  --pink: #d9a3a3;
  --pink-dark: #b87979;
  --dark: #171717;
  --dark-soft: #222;
  --line: rgba(23, 21, 20, 0.14);
  --shadow: 0 18px 42px rgba(30, 20, 16, 0.12);
  --shadow-strong: 0 26px 70px rgba(30, 20, 16, 0.22);
  --radius: 8px;
  --container: 1180px;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Courier New", Courier, monospace;
  background:
    radial-gradient(circle at 10% 8%, rgba(217, 163, 163, 0.22), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(180deg, #f0e5dc 0%, #e9ded6 100%);
  color: var(--text);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  z-index: 9999;
  background-image:
    linear-gradient(rgba(23, 21, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 20, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mix-blend-mode: multiply;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
p,
li,
a,
span {
  word-break: break-word;
}

.container {
  width: min(var(--container), calc(100% - 42px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.section {
  padding: 92px 0;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(239, 229, 220, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 21, 20, 0.1);
}

.nav-wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 330px;
  padding: 8px 0;
}

.brand img {
  height: 72px;
  width: auto;
  max-width: 310px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(30, 20, 16, 0.18));
  transition: var(--transition);
}

.brand img:hover {
  transform: rotate(-1deg) scale(1.035);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-nav a {
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a.active::after,
.site-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 3px;
  background: var(--pink);
  transform: rotate(-1deg);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(23, 21, 20, 0.16);
  border-radius: 999px;
  background: rgba(248, 240, 232, 0.88);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
  transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */

.hero {
  position: relative;
  padding: 92px 0 96px;
}

.hero::before {
  content: "✧";
  position: absolute;
  left: 5%;
  top: 12%;
  font-size: 48px;
  color: var(--dark);
  transform: rotate(-18deg);
  opacity: 0.7;
}

.hero::after {
  content: "dream\A plan\A do ♡";
  white-space: pre;
  position: absolute;
  right: 5%;
  top: 20%;
  padding: 18px 16px;
  background: #d8c8bc;
  color: #544a45;
  font-size: 0.95rem;
  line-height: 1.5;
  transform: rotate(5deg);
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 54px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 26px;
  max-width: 620px;
  font-family: "Comic Sans MS", "Bradley Hand", "Courier New", cursive;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(-2deg);
  word-break: normal;
  overflow-wrap: normal;
}

.hero-text,
.page-intro {
  max-width: 460px;
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 2px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-dark {
  position: relative;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-dark::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(23, 21, 20, 0.18);
  transform: rotate(-1.5deg);
  z-index: -1;
}

.btn-dark:hover {
  transform: translateY(-4px) rotate(-1deg) scale(1.01);
}

.btn-light {
  background: transparent;
  border-color: rgba(23, 21, 20, 0.2);
  color: var(--text);
}

.btn-link {
  padding: 0;
  min-height: unset;
  border-radius: 0;
  border-bottom: 2px solid var(--pink);
  color: var(--text);
}

.hero-image-card {
  position: relative;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-image-card::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 140px;
  height: 34px;
  background: rgba(217, 163, 163, 0.75);
  transform: translateX(-50%) rotate(-3deg);
  z-index: 3;
  opacity: 0.88;
}

.hero-image-card img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-strong);
  filter: saturate(0.92) contrast(1.02);
}

/* FEATURE SECTION */

.soft-section {
  background: var(--bg);
  border-top: 1px solid rgba(23, 21, 20, 0.08);
  border-bottom: 1px solid rgba(23, 21, 20, 0.08);
}

.feature-grid,
.about-grid,
.contact-grid,
.commission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2,
.feature-card h2,
.cta-panel h2,
.about-copy h2,
.info-panel h2 {
  margin: 0 0 14px;
  font-family: "Comic Sans MS", "Bradley Hand", "Courier New", cursive;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-1deg);
}

.feature-card p,
.feature-points p,
.cta-panel p,
.about-copy p,
.info-panel p,
.info-panel li {
  color: var(--text-soft);
}

.feature-points {
  display: grid;
  gap: 18px;
}

.mini-panel,
.info-panel {
  background: rgba(248, 240, 232, 0.78);
  border: 1px solid rgba(23, 21, 20, 0.12);
  padding: 28px;
  box-shadow: var(--shadow);
}

.mini-panel:nth-child(1) {
  transform: rotate(0.5deg);
}

.mini-panel:nth-child(2) {
  transform: rotate(-0.7deg);
}

.mini-panel:nth-child(3) {
  transform: rotate(0.8deg);
}

.mini-panel h3,
.art-info h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* DARK FEATURED WORK STRIP */

.section:has(.art-grid) {
  position: relative;
}

.section:has(.art-grid) .section-head {
  position: relative;
}

.section:has(.art-grid) .section-head::after {
  content: "☆";
  margin-left: 18px;
  font-size: 34px;
  color: var(--pink);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.art-grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.art-card {
  position: relative;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: var(--transition);
}

.art-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 32%;
  width: 74px;
  height: 24px;
  background: rgba(217, 163, 163, 0.82);
  transform: rotate(-4deg);
  z-index: 4;
  opacity: 0;
  transition: var(--transition);
}

.art-card:hover::before {
  opacity: 1;
}

.art-card:nth-child(odd) {
  transform: rotate(-0.8deg);
}

.art-card:nth-child(even) {
  transform: rotate(0.8deg);
}

.art-card:hover {
   transform: translateY(-6px) rotate(0deg) scale(1.01);
}

.art-card img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 14px 34px rgba(23, 21, 20, 0.2);
  filter: saturate(0.95) contrast(1.02);
  transition: var(--transition);
}

.art-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.04);
  
}

.art-card-detail .art-info {
  position: relative;
  z-index: 5;
  padding: 18px 0 0;
  background: transparent;
}

.art-info p {
  margin: 0;
  color: var(--text-soft);
}

/* CTA / COMMISSIONS */

.accent-section {
  background: var(--dark);
  color: #fff;
}

.accent-section .eyebrow,
.accent-section p {
  color: rgba(255, 255, 255, 0.72);
}

.accent-section h2 {
  color: #fff;
}

.cta-panel {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;
  background: transparent;
  border: none;
  padding: 10px 0;
  box-shadow: none;
}

.cta-panel::after {
  content: "thank you\A so much!\A ♡";
  white-space: pre;
  position: absolute;
  right: 0;
  bottom: -48px;
  background: #d6c4b8;
  color: #4f4540;
  padding: 18px 22px;
  transform: rotate(7deg);
  box-shadow: var(--shadow);
}

.clean-list {
  margin: 0;
  padding-left: 22px;
}

.clean-list li + li {
  margin-top: 10px;
}

.numbered-list {
  padding-left: 24px;
}

/* ABOUT */

.about-image img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 3px;
  border: 12px solid #f7efe8;
  box-shadow: var(--shadow-strong);
  transform: rotate(-2deg);
}

.text-link {
  color: var(--text);
  border-bottom: 2px solid var(--pink);
}

.contact-spacer {
  margin-top: 28px;
}

/* FOOTER */

.site-footer {
  background: var(--dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wrap {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 34px 0;
}

.footer-wrap h3 {
  margin: 0 0 6px;
  color: #fff;
}

.footer-wrap p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav a:hover {
  color: #fff;
}

/* ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* RESPONSIVE */

@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .commission-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cta-panel::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .nav-wrap {
    min-height: 80px;
  }

  .brand {
    max-width: 220px;
    padding: 6px 0;
  }

  .brand img {
    height: 54px;
    max-width: 210px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 80px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: rgba(239, 229, 220, 0.98);
    border: 1px solid rgba(23, 21, 20, 0.14);
    box-shadow: var(--shadow-strong);
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    padding: 58px 0 66px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

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

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .hero-image-card img {
    min-height: 380px;
  }

  .art-grid,
  .art-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .art-card img {
    aspect-ratio: 1 / 1.25;
  }

  .art-card-detail .art-info {
    display: none;
  }

  .mini-panel,
  .info-panel {
    transform: none !important;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .btn-link {
    width: fit-content;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand img {
    height: 46px;
    max-width: 185px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 3rem;
  }

  .mini-panel,
  .info-panel {
    padding: 22px;
  }
}

/* ================================
   SCROLL TO TOP BUTTON
================================ */

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(23, 21, 20, 0.18);
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 14px 34px rgba(23, 21, 20, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) rotate(-6deg);
  transition: 0.3s ease;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) rotate(-6deg);
}

.scroll-top:hover {
  background: #d9a3a3;
  color: #171717;
  transform: translateY(-5px) rotate(2deg) scale(1.04);
}

@media (max-width: 768px) {
  .scroll-top {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}
/* Fix long page titles like Commissions */
.page-hero .narrow {
  max-width: 980px;
}

.page-hero h1 {
  word-break: normal;
  overflow-wrap: normal;
  max-width: 100%;
}

@media (max-width: 768px) {
  .page-hero .narrow {
    max-width: 100%;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
    line-height: 0.9;
  }
}

/* ================================
   WORK PAGE EDITORIAL STYLE
================================ */

.work-hero h1 {
  max-width: 100%;
}

.work-showcase {
  position: relative;
}

.work-editorial-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 26px;
  align-items: stretch;
}

.work-piece {
  position: relative;
  display: block;
  overflow: visible;
  transform: rotate(0.7deg);
}

.work-piece:nth-child(even) {
  transform: rotate(-0.8deg);
}

.work-piece-large {
  grid-row: span 2;
  transform: rotate(-1deg);
}

.work-piece::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 36%;
  width: 86px;
  height: 26px;
  background: rgba(217, 163, 163, 0.82);
  transform: rotate(-4deg);
  z-index: 3;
}

.work-piece img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-strong);
  transition: 0.3s ease;
}

.work-piece-large img {
  min-height: 680px;
}

.work-piece:hover img {
  transform: scale(1.02) rotate(0.4deg);
}

.work-piece span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  background: rgba(248, 240, 232, 0.92);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transform: rotate(-1deg);
  border: 1px solid rgba(23,21,20,0.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
  .work-editorial-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .work-piece-large {
    grid-column: span 2;
    grid-row: auto;
  }

  .work-piece-large img {
    min-height: 440px;
  }

  .work-piece img {
    min-height: 260px;
  }
}

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

  .work-piece-large {
    grid-column: span 1;
  }

  .work-piece-large img,
  .work-piece img {
    min-height: 360px;
  }

  .work-piece span {
    font-size: 0.7rem;
  }
}

/* ================================
   SKETCHBOOK POLISH
================================ */

.sketch-head {
  position: relative;
}

.sketch-head h2 {
  transform: rotate(-1deg);
}

.sketch-note {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(248, 240, 232, 0.95);
  border: 1px solid rgba(23,21,20,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-soft);
  transform: rotate(2deg);
  max-width: 340px;
}

.sketchbook-page .art-card:nth-child(3n) {
  transform: rotate(-1.5deg);
}

.sketchbook-page .art-card:nth-child(4n) {
  transform: rotate(1.5deg);
}

.sketchbook-page .art-card::before {
  opacity: 1;
}

.sketchbook-page .art-card img {
  filter: saturate(0.92) contrast(1.01);
}

.sketchbook-page .art-card:hover img {
  filter: saturate(1.08) contrast(1.04) brightness(1.01);
}

/* ================================
   ABOUT PAGE POLISH
================================ */

.about-copy {
  position: relative;
}

.about-note {
  display: inline-block;
  margin: 24px 0;
  padding: 16px 18px;
  background: rgba(248,240,232,0.95);
  border: 1px solid rgba(23,21,20,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.7;
  transform: rotate(1.5deg);
  max-width: 360px;
}

.about-image {
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 120px;
  height: 28px;
  background: rgba(217,163,163,0.82);
  transform: translateX(-50%) rotate(-4deg);
  z-index: 3;
}

.about-image img {
  transition: 0.3s ease;
}

.about-image:hover img {
  transform: rotate(-1deg) scale(1.01);
}

/* ================================
   CONTACT PAGE POLISH
================================ */

.contact-page .contact-hero {
  position: relative;
}

.contact-page .contact-hero::after {
  content: "send a note ♡";
  position: absolute;
  right: 8%;
  top: 28%;
  background: #d6c4b8;
  color: #4f4540;
  padding: 16px 18px;
  transform: rotate(6deg);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.contact-card {
  position: relative;
}

.contact-card:nth-child(1) {
  transform: rotate(-0.6deg);
}

.contact-card:nth-child(2) {
  transform: rotate(0.8deg);
}

.contact-label {
  margin: 22px 0 4px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  font-size: 0.85rem;
}

.contact-sticky-note {
  display: inline-block;
  margin-top: 28px;
  padding: 16px 18px;
  background: rgba(217, 163, 163, 0.82);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transform: rotate(-3deg);
  max-width: 260px;
}

@media (max-width: 768px) {
  .contact-page .contact-hero::after {
    display: none;
  }

  .contact-card {
    transform: none !important;
  }
}

.footer-wrap {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: flex-start;
  gap: 40px;
  padding: 34px 0;
}

.footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-links-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.footer-instagram {
  position: relative;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.04em;
  transition: 0.3s ease;
}

.footer-instagram::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: rgba(217,163,163,0.55);
  transform: scaleX(0.7);
  transform-origin: left;
  transition: 0.3s ease;
}

.footer-instagram:hover::after {
  transform: scaleX(1);
}

.footer-instagram:hover {
  color: #fff;
}

.footer-copyright {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.05em;
  text-align: center;
}

.site-credit {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

.site-credit a {
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

@media (max-width: 768px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-center {
    justify-content: flex-start;
  }

  .footer-links-wrap {
    align-items: flex-start;
  }
}

::selection {
  background: rgba(217,163,163,0.42);
  color: #171717;
}

/* ================================
   FINAL CLEAN OVERRIDES
================================ */

/* Sanity dynamic images */
.sanity-card {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.sanity-card img,
#sketchbookGrid .art-card img,
#workGrid .art-card img,
#commissionsGrid .art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
  background: #f3e8df;
}

/* Disable logo click/focus/cursor */
.brand {
  pointer-events: none !important;
  cursor: default !important;
  -webkit-tap-highlight-color: transparent !important;
}

.brand,
.brand *,
.brand:focus,
.brand:focus-visible,
.brand:active {
  outline: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Real Instagram icon */
.footer-instagram::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 9px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm5.2-2.4a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm5.2-2.4a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Mobile final layout */
@media (max-width: 700px) {
  .page-hero.section {
    padding-top: 62px !important;
    padding-bottom: 42px !important;
  }

  .page-hero h1,
  .work-hero h1,
  .sketchbook-page .page-hero h1,
  body:has(.site-nav a[href="commissions.html"].active) .page-hero h1,
  .contact-page .page-hero h1 {
    font-size: 2.75rem !important;
    line-height: 0.9 !important;
    max-width: 92vw !important;
    transform: none !important;
    letter-spacing: -1px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  body:has(.site-nav a[href="commissions.html"].active) .page-hero h1 {
    font-size: 2.45rem !important;
  }

  .sketchbook-page .page-hero h1 {
    font-size: 2.55rem !important;
  }

  .contact-page .page-hero h1 {
    font-size: 2.35rem !important;
  }

  .section {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .accent-section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  .cta-panel h2,
  .accent-section h2 {
    font-size: 1.85rem !important;
    line-height: 0.95 !important;
    max-width: 330px !important;
    transform: none !important;
  }

  .cta-panel p,
  .accent-section p {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    max-width: 330px !important;
  }

  .cta-panel {
    gap: 20px !important;
  }
}

/* FINAL: reduce dark CTA empty gap + make Work featured 2-column on mobile */
@media (max-width: 700px) {
  .accent-section {
    min-height: auto !important;
  }

  .cta-panel {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
  }

  .cta-panel::after {
    display: none !important;
  }

  .work-editorial-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .work-piece,
  .work-piece-large {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .work-piece img,
  .work-piece-large img {
    min-height: 0 !important;
    height: 210px !important;
    object-fit: cover !important;
  }

  .work-piece span {
    font-size: 0.58rem !important;
    padding: 7px 9px !important;
  }
}

/* FINAL: remove mobile dark CTA excessive empty space */
@media (max-width: 700px) {
  .accent-section.section {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  .accent-section .cta-panel {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    gap: 18px !important;
  }

  .accent-section .cta-actions {
    margin-top: 12px !important;
  }

  .accent-section .btn {
    min-height: 42px !important;
    padding: 0 18px !important;
    width: fit-content !important;
  }
}

/* FINAL mobile CTA alignment + footer spacing */
@media (max-width: 700px) {
  .accent-section .section-inner,
  .accent-section .cta-panel {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .accent-section h2,
  .accent-section p {
    max-width: 100% !important;
  }

  .accent-section .cta-actions {
    margin-top: 8px !important;
    margin-bottom: 18px !important;
  }

  .site-footer {
    padding-top: 28px !important;
  }

  .footer-grid {
    gap: 10px !important;
  }
}

/* FINAL: premium mobile dark CTA */
@media (max-width: 700px) {
  .accent-section.section {
    padding: 34px 0 !important;
  }

  .accent-section .cta-panel {
    width: calc(100% - 28px) !important;
    margin: 0 auto !important;
    padding: 22px 18px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.025) !important;
    gap: 14px !important;
  }

  .accent-section .eyebrow {
    margin-bottom: 8px !important;
    font-size: 0.62rem !important;
  }

  .accent-section h2 {
    font-size: 1.55rem !important;
    line-height: 1.05 !important;
    max-width: 260px !important;
  }

  .accent-section p {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    max-width: 270px !important;
  }

  .accent-section .cta-actions {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
  }

  .accent-section .btn {
    width: auto !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    font-size: 0.68rem !important;
  }
}

/* =========================================
   FINAL DESKTOP HERO FIX
========================================= */

@media (min-width: 1024px) {
  .page-hero.section {
    position: relative !important;
    overflow: hidden !important;
    min-height: 360px !important;
    padding: 74px 0 60px !important;
    display: flex !important;
    align-items: center !important;
  }

  .page-hero .container.narrow {
    display: block !important;
    max-width: 1180px !important;
    width: min(1180px, calc(100% - 80px)) !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 5 !important;
  }

  .page-hero h1 {
    position: relative !important;
    z-index: 6 !important;
    max-width: 620px !important;
    font-size: clamp(4rem, 5.2vw, 5.6rem) !important;
    line-height: 0.9 !important;
    margin: 0 0 28px !important;
  }

  .page-hero .eyebrow,
  .page-hero .page-intro {
    max-width: 430px !important;
    position: relative !important;
    z-index: 6 !important;
  }

  .page-hero.section::before {
    content: "" !important;
    position: absolute !important;
    right: 9% !important;
    top: 50% !important;
    width: 250px !important;
    height: 300px !important;
    transform: translateY(-50%) rotate(-4deg) !important;
    border: 1px solid rgba(23,21,20,0.08) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,0.08) !important;
    z-index: 1 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  body:has(.site-nav a[href="work.html"].active) .page-hero.section::before {
    background-image:
      linear-gradient(rgba(248,240,232,0.06), rgba(248,240,232,0.06)),
      url("./images/work/work-0.jpg") !important;
  }

  body.sketchbook-page .page-hero.section::before {
    background-image:
      linear-gradient(rgba(248,240,232,0.05), rgba(248,240,232,0.05)),
      url("./images/sketchbook/sketch-2.jpg") !important;
  }

  body:has(.site-nav a[href="commissions.html"].active) .page-hero.section::before {
    background-image:
      linear-gradient(rgba(248,240,232,0.05), rgba(248,240,232,0.05)),
      url("./images/commissions/netflix-0.jpg") !important;
  }

body:has(.site-nav a[href="contact.html"].active) .page-hero.section::before {
  background-image:
    linear-gradient(rgba(248,240,232,0.06), rgba(248,240,232,0.06)),
    url("./images/contact/contact-hero-art.jpg")!important;
}

  .page-hero.section::after {
    display: none !important;
  }

  body:has(.site-nav a[href="about.html"].active) .page-hero.section::before {
    display: none !important;
  }

  body:has(.site-nav a[href="about.html"].active) .page-hero .container.narrow {
    text-align: center !important;
  }

  body:has(.site-nav a[href="about.html"].active) .page-hero h1,
  body:has(.site-nav a[href="about.html"].active) .page-hero .eyebrow,
  body:has(.site-nav a[href="about.html"].active) .page-hero .page-intro {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Artwork detail page */
.artwork-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 58px;
  align-items: start;
}

.artwork-main-image img,
.artwork-gallery-item img {
  width: 100%;
  background: #f3e8df;
  box-shadow: var(--shadow-strong);
}

.artwork-info h1 {
  margin: 0 0 18px;
  font-family: "Comic Sans MS", "Bradley Hand", "Courier New", cursive;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.artwork-year,
.artwork-description,
.gallery-caption {
  color: var(--text-soft);
}

.artwork-gallery-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .artwork-detail-layout,
  .artwork-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* FINAL: dark section CTA links - match original upward hover style */
.accent-section .cta-actions a,
.accent-section .cta-actions a.btn,
.accent-section .cta-actions a.btn-dark,
.accent-section .cta-actions a.btn-light,
.accent-section .cta-actions a.btn-link {
  color: #ffffff !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    text-shadow 0.3s ease !important;
}

.accent-section .cta-actions a::before,
.accent-section .cta-actions a.btn::before,
.accent-section .cta-actions a.btn-dark::before,
.accent-section .cta-actions a.btn-light::before {
  display: none !important;
}

.accent-section .cta-actions a:hover,
.accent-section .cta-actions a.btn:hover,
.accent-section .cta-actions a.btn-dark:hover,
.accent-section .cta-actions a.btn-light:hover,
.accent-section .cta-actions a.btn-link:hover {
  color: #f1d6d8 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: translateY(-4px) rotate(-1deg) scale(1.01) !important;
  text-shadow: 0 0 10px rgba(241, 214, 216, 0.45) !important;
}

/* Image viewer overlay with close X */
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(248, 240, 232, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-viewer.active {
  display: flex;
}

.image-viewer img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 18px 42px rgba(30, 20, 16, 0.22);
  background: #fff;
}

.image-viewer-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100000;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(23, 21, 20, 0.18);
  border-radius: 50%;
  background: #171717;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-viewer-close:hover {
  background: #d9a3a3;
  color: #171717;
}