/*
Theme Name: Myanko Modern
Theme URI: https://myanko.com/
Author: Myanko
Description: A warm, modern portfolio theme for Myanko's art, accessible Unity resources, and wearable designs.
Version: 1.2.5
Text Domain: myanko-modern
*/

:root {
  --ink: #202027;
  --muted: #6f6b78;
  --paper: #fffaf4;
  --paper-2: #f4ede5;
  --white: #ffffff;
  --coral: #ee6b55;
  --coral-dark: #c84c3c;
  --plum: #5b3b64;
  --mint: #8dc9b8;
  --sun: #f3c25d;
  --line: rgba(32, 32, 39, 0.13);
  --shadow: 0 22px 60px rgba(58, 41, 60, 0.12);
  --radius: 28px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 194, 93, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(141, 201, 184, 0.18), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }

a { color: var(--coral-dark); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--plum); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link:focus {
  position: fixed !important;
  z-index: 99999;
  top: 12px; left: 12px;
  width: auto; height: auto; clip: auto;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 250, 244, 0.88);
  border-bottom: 1px solid rgba(32, 32, 39, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--wrap);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: block;
  width: 48px; height: 48px;
  object-fit: cover;
  flex: 0 0 48px;
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(238, 107, 85, 0.28);
}

.brand-mark::before { content: none; }

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 900;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: -.015em;
}

.main-nav { display: flex; align-items: center; gap: 5px; }

.main-nav a {
  padding: 9px 13px;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 750;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav .is-current {
  color: var(--coral-dark);
  background: rgba(238, 107, 85, 0.10);
}

.main-nav .nav-shop {
  margin-left: 7px;
  color: var(--white);
  background: var(--plum);
}

.main-nav .nav-shop:hover { color: var(--white); background: var(--coral-dark); }

.menu-toggle {
  display: none;
  width: 45px; height: 45px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.site-main { overflow: hidden; }
.wrap { width: var(--wrap); margin-inline: auto; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral-dark);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 { font-size: clamp(3rem, 7.4vw, 6.5rem); }
h2 { font-size: clamp(2.25rem, 4.7vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.7rem); }

.lead { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.32rem); }

.button,
button.button,
input.button,
.woocommerce a.button,
.woocommerce button.button,
.wp-element-button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  color: var(--white) !important;
  background: var(--coral) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 0.92rem;
  font-weight: 850 !important;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  color: var(--white) !important;
  background: var(--coral-dark) !important;
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--ink) !important;
  background: transparent !important;
  border: 1px solid var(--line) !important;
}

.button.secondary:hover { background: var(--white) !important; }

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: clamp(70px, 10vw, 130px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(45px, 7vw, 100px);
}

.hero-copy h1 { max-width: 850px; margin-bottom: 28px; }
.hero-copy h1 em { color: var(--coral); font-family: Georgia, serif; font-weight: 500; }
.hero-copy .lead { max-width: 700px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-art {
  position: relative;
  min-height: 560px;
}

.art-card {
  position: absolute;
  overflow: hidden;
  background: var(--white);
  border: 10px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.art-card img { width: 100%; height: 100%; object-fit: cover; }
.art-card.main { inset: 0 10% 12% 8%; transform: rotate(2.5deg); }
.art-card.float { width: 48%; height: 43%; right: -2%; bottom: 0; transform: rotate(-7deg); }
.art-spark { position: absolute; left: -3%; bottom: 10%; font-size: 4rem; transform: rotate(-12deg); }

.path-section,
.home-section,
.page-hero,
.page-section { padding: clamp(72px, 9vw, 120px) 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-head > div { max-width: 700px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { margin: 0; color: var(--muted); }

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

.path-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(25px, 4vw, 38px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.path-card:hover { color: var(--ink); transform: translateY(-7px) rotate(-.5deg); box-shadow: var(--shadow); }
.path-card:nth-child(2) { background: #ebf5f1; }
.path-card:nth-child(3) { background: #fff1e9; }
.path-icon { font-size: 2.2rem; }
.path-card h3 { margin: 30px 0 9px; }
.path-card p { margin: 0; color: var(--muted); }
.path-arrow { align-self: end; font-size: 1.8rem; }

.merch-band {
  padding: clamp(65px, 8vw, 100px) 0;
  color: var(--white);
  background: var(--plum);
}

.merch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.shop-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 48px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), transparent 55%),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  text-decoration: none;
}

.shop-card:hover { color: var(--white); background-color: rgba(255,255,255,.12); }
.shop-card .shop-name { margin-bottom: auto; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.shop-card h3 { margin: 30px 0 8px; font-size: clamp(1.8rem, 4vw, 3rem); }
.shop-card p { max-width: 520px; margin: 0; color: rgba(255,255,255,.73); }

.resource-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.resource-card,
.post-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.resource-media,
.post-media { aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.resource-media img,
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.resource-card:hover img,
.post-card:hover img { transform: scale(1.035); }
.resource-body,
.post-body { padding: clamp(24px, 4vw, 36px); }
.resource-body h3,
.post-body h3 { margin-bottom: 10px; }
.resource-body p,
.post-body p { color: var(--muted); }
.resource-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.free-pill { display: inline-block; margin-bottom: 17px; padding: 5px 10px; color: #245848; background: #dff3eb; border-radius: 999px; font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.page-hero { padding-bottom: 45px; }
.page-hero h1 { max-width: 950px; margin-bottom: 20px; }
.page-hero .lead { max-width: 760px; }

.gallery-page { padding-bottom: 110px; }
.gallery-page .entry-content > h2 { margin: 85px 0 22px; font-size: clamp(2rem, 4vw, 3.2rem); }
.gallery-page .entry-content > h2:first-child { margin-top: 10px; }

.gallery-shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

/* Turn FooGallery's identical thumbnail grids into two intentionally different collections. */
#foogallery-gallery-145 {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(280px, 34vw) !important;
  gap: 18px !important;
  width: 100% !important;
  padding: 4px 4px 26px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--coral) rgba(32,32,39,.08);
}

#foogallery-gallery-145 .fg-item {
  position: relative !important;
  left: auto !important; top: auto !important;
  width: auto !important; height: 430px !important;
  margin: 0 !important;
  scroll-snap-align: start;
  border: 0 !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}

#foogallery-gallery-145 .fg-item-inner,
#foogallery-gallery-145 .fg-image-wrap { width: 100% !important; height: 100% !important; }
#foogallery-gallery-145 .fg-image { width: 100% !important; height: 100% !important; object-fit: cover !important; }
#foogallery-gallery-145 .fg-caption { padding: 22px !important; background: linear-gradient(transparent, rgba(23,17,25,.86)) !important; }
#foogallery-gallery-145 .fg-caption-inner { justify-content: flex-end !important; }
#foogallery-gallery-145 .fg-caption-title { color: #fff !important; font-size: 1.08rem !important; font-weight: 850 !important; }
#foogallery-gallery-145 .fg-caption-desc { color: rgba(255,255,255,.78) !important; }
#foogallery-gallery-145 .fg-caption-desc a { color: #fff !important; font-weight: 800; }

#foogallery-gallery-160 {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  grid-auto-rows: 92px !important;
  grid-auto-flow: dense !important;
  gap: 14px !important;
  width: 100% !important;
}

#foogallery-gallery-160 .fg-item {
  position: relative !important;
  left: auto !important; top: auto !important;
  grid-column: span 4;
  grid-row: span 3;
  width: auto !important; height: auto !important;
  margin: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

#foogallery-gallery-160 .fg-item:nth-child(9n+1),
#foogallery-gallery-160 .fg-item:nth-child(9n+6) { grid-column: span 8; grid-row: span 5; }
#foogallery-gallery-160 .fg-item:nth-child(7n+3) { grid-column: span 4; grid-row: span 4; }
#foogallery-gallery-160 .fg-item-inner,
#foogallery-gallery-160 .fg-image-wrap { width: 100% !important; height: 100% !important; }
#foogallery-gallery-160 .fg-image { width: 100% !important; height: 100% !important; object-fit: cover !important; }

.downloads-page { padding-bottom: 110px; }
.downloads-note {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 10px 0 42px;
  padding: 18px 21px;
  color: #245848;
  background: #e4f3ed;
  border-radius: 17px;
}
.downloads-note strong { display: block; }
.downloads-note p { margin: 0; }

.content-shell {
  width: min(850px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(65px, 9vw, 110px) 0;
}

.entry-header h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.entry-meta { color: var(--muted); font-size: .88rem; }
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content img { border-radius: 20px; }

.woocommerce-page .site-main > .wrap,
.woocommerce .site-main > .wrap { padding: 75px 0 110px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 45px; }
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary { float: none !important; width: auto !important; }
.woocommerce div.product .product_title { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.woocommerce div.product .price { color: #245848 !important; font-size: 1rem !important; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .related { grid-column: 1 / -1; }
.woocommerce .quantity { display: none !important; }
.woocommerce .product_meta { margin-top: 24px; color: var(--muted); font-size: .88rem; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 0 0 25px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 22px; }
.woocommerce ul.products li.product img { margin: 0 0 20px !important; aspect-ratio: 16/10; object-fit: cover; }
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button { margin-left: 23px !important; margin-right: 23px !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--mint) !important; background: #e9f4f0 !important; }

.site-footer {
  padding: 70px 0 30px;
  color: rgba(255,255,255,.75);
  background: #242128;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 50px;
  padding-bottom: 55px;
}

.footer-grid h2 { max-width: 570px; color: var(--white); font-size: clamp(2rem, 4vw, 3.4rem); }
.footer-grid h3 { margin-bottom: 18px; color: var(--white); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

@media (max-width: 920px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 20px; right: 20px;
    display: none;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 19px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: grid; }
  .main-nav .nav-shop { margin-left: 0; text-align: center; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 470px; max-width: 620px; width: 100%; margin: 10px auto 0; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 220px; }
  #foogallery-gallery-160 { grid-template-columns: repeat(6, 1fr) !important; }
  #foogallery-gallery-160 .fg-item { grid-column: span 3; }
  #foogallery-gallery-160 .fg-item:nth-child(9n+1),
  #foogallery-gallery-160 .fg-item:nth-child(9n+6) { grid-column: span 6; }
  .woocommerce div.product { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  body.admin-bar .site-header { top: 0; }
  .header-inner { min-height: 72px; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.4rem); }
  .hero { padding-top: 56px; }
  .hero-art { min-height: 385px; }
  .art-card.main { inset: 0 7% 8% 2%; }
  .art-card.float { width: 47%; height: 39%; }
  .section-head { display: block; }
  .section-head .button { margin-top: 20px; }
  .merch-grid, .resource-grid, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .shop-card { min-height: 240px; }
  #foogallery-gallery-145 { grid-auto-columns: 82vw !important; }
  #foogallery-gallery-145 .fg-item { height: 390px !important; }
  #foogallery-gallery-160 { grid-template-columns: repeat(2, 1fr) !important; grid-auto-rows: 95px !important; gap: 9px !important; }
  #foogallery-gallery-160 .fg-item,
  #foogallery-gallery-160 .fg-item:nth-child(7n+3) { grid-column: span 1; grid-row: span 2; }
  #foogallery-gallery-160 .fg-item:nth-child(9n+1),
  #foogallery-gallery-160 .fg-item:nth-child(9n+6) { grid-column: span 2; grid-row: span 3; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* 1.1 — Dark, compact, information-first refinement */
:root {
  --ink: #f4f7fb;
  --muted: #aeb7c7;
  --paper: #090b10;
  --paper-2: #0f131c;
  --white: #141925;
  --coral: #00cff9;
  --coral-dark: #5ce5ff;
  --plum: #0d1119;
  --mint: #00cff9;
  --sun: #ffd166;
  --accent-gradient: linear-gradient(135deg, #0086e9 0%, #00cff9 100%);
  --accent-glow: 0 0 28px rgba(0, 207, 249, 0.22), 0 10px 30px rgba(0, 134, 233, 0.2);
  --line: rgba(255, 255, 255, 0.11);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(110, 231, 255, 0.09), transparent 29rem),
    radial-gradient(circle at 88% 20%, rgba(183, 255, 103, 0.055), transparent 26rem),
    var(--paper);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--coral); }
a:hover { color: var(--mint); }

.site-header {
  background: rgba(9, 11, 16, 0.9);
  border-bottom-color: var(--line);
}

.brand,
.main-nav a,
.menu-toggle { color: var(--ink); }

.brand-mark {
  background: #111521;
  border: 1px solid rgba(0, 207, 249, .42);
  box-shadow: var(--accent-glow);
}

.main-nav a:hover,
.main-nav .is-current {
  color: var(--coral);
  background: rgba(110, 231, 255, 0.09);
}

.main-nav .nav-shop {
  color: #071015;
  background: var(--accent-gradient);
  box-shadow: 0 0 22px rgba(104, 239, 255, 0.14);
}

.main-nav .nav-shop:hover {
  color: #071015;
  background: var(--mint);
}

.menu-toggle {
  background: var(--white);
  border-color: var(--line);
}

.eyebrow { color: var(--coral); }

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

.lead { color: var(--muted); font-size: clamp(1.03rem, 1.5vw, 1.18rem); }

.button,
button.button,
input.button,
.woocommerce a.button,
.woocommerce button.button,
.wp-element-button {
  min-height: 42px;
  padding: 10px 17px;
  color: #071015 !important;
  background: var(--accent-gradient) !important;
  box-shadow: var(--accent-glow) !important;
  font-size: 0.84rem;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  color: #071015 !important;
  background: var(--mint) !important;
}

.button.secondary {
  color: var(--ink) !important;
  background: transparent !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}

.button.secondary:hover {
  color: var(--ink) !important;
  background: rgba(255,255,255,.06) !important;
}

.hero {
  min-height: auto;
  padding: clamp(70px, 8vw, 105px) 0;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr);
  gap: clamp(38px, 6vw, 76px);
}

.hero-copy h1 { max-width: 720px; margin-bottom: 20px; }
.hero-copy h1 em {
  color: var(--coral);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: inherit;
  font-style: normal;
  font-weight: 850;
  filter: drop-shadow(0 0 18px rgba(104, 239, 255, 0.12));
}
.hero-copy .lead { max-width: 720px; }
.hero-actions { margin-top: 25px; }

.myanko-meaning { display: none; }

.hero-art { min-height: 420px; }
.art-card {
  padding: 6px;
  background: var(--white);
  border: 0;
  clip-path: inset(.5px round calc(var(--radius) - .5px));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.art-card img {
  display: block;
  border-radius: calc(var(--radius) - 6px);
  transform: translateZ(0) scale(1.002);
}
.art-card.main {
  inset: 0 9% 8% 4%;
  transform: translateZ(0) rotate(2.5deg);
}
.art-card.float {
  width: 42%;
  height: 39%;
  transform: translateZ(0) rotate(-7deg);
}
.art-spark {
  display: none;
}

.home-section,
.page-section { padding: clamp(58px, 7vw, 88px) 0; }

.home-section + .home-section { border-top: 1px solid var(--line); }

.section-head {
  align-items: center;
  margin-bottom: 28px;
}

.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); }

.updates-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.update-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  padding: 20px 24px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
}

.update-row:hover { color: var(--ink); background: #18202d; }
.update-date { color: var(--muted); font-size: .8rem; }
.update-row h3 { margin: 0 0 5px; }
.update-row p { margin: 0; color: var(--muted); font-size: .9rem; }
.update-arrow { color: var(--coral); font-size: 1.2rem; }

.shirts-panel {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 26px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shirts-copy h2 { margin-bottom: 10px; }
.shirts-copy p { color: var(--muted); }
.shirts-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.shirts-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #e9e9e9;
}

.resource-list {
  display: grid;
  gap: 14px;
}

.resource-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 168px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.resource-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #080a0f;
  border-radius: 12px;
}

.resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-copy { min-width: 0; }
.resource-copy h3,
.resource-copy h2 { margin: 4px 0 7px; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.resource-copy p { max-width: 680px; margin: 0; color: var(--muted); font-size: .91rem; }
.resource-meta { margin-top: 10px; color: #7f899b; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.resource-row .resource-actions {
  width: min(100%, 190px);
  max-width: 100%;
  min-width: 0;
  display: grid;
  justify-self: end;
  margin: 0;
}
.resource-row .button {
  width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.free-pill {
  margin: 0;
  padding: 0;
  color: var(--mint);
  background: transparent;
  font-size: .69rem;
}

.page-hero {
  padding: clamp(58px, 7vw, 85px) 0 32px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { max-width: 860px; margin-bottom: 15px; }
.page-hero .lead { max-width: 720px; }

.gallery-page,
.downloads-page { padding: 48px 0 90px; }
.gallery-page .entry-content > h2 { margin: 64px 0 18px; font-size: clamp(1.7rem, 3vw, 2.45rem); }

.gallery-shop-links { margin-bottom: 18px; }

.gallery-view-nav {
  position: sticky;
  z-index: 20;
  top: 92px;
  display: inline-flex;
  gap: 5px;
  margin: 0 0 26px;
  padding: 5px;
  background: rgba(20, 25, 37, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.gallery-view-nav a {
  padding: 9px 15px;
  color: var(--muted);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.gallery-view-nav a:first-child {
  color: #071015;
  background: var(--accent-gradient);
  box-shadow: 0 0 18px rgba(0, 207, 249, .16);
}

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

.gallery-section-description {
  max-width: 680px;
  margin: -7px 0 20px;
  color: var(--muted);
  font-size: .9rem;
}

.gallery-page .entry-content > h2 {
  scroll-margin-top: 170px;
}

#foogallery-gallery-145 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 14px !important;
  padding: 0 !important;
  overflow: visible !important;
}

#foogallery-gallery-145 .fg-item {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: 315px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  scroll-snap-align: none;
}

#foogallery-gallery-145 .fg-caption {
  padding: 16px !important;
  background: linear-gradient(transparent 25%, rgba(5,7,11,.94)) !important;
}

#foogallery-gallery-145 .fg-caption-title { font-size: .94rem !important; }
#foogallery-gallery-145 .fg-caption-desc { font-size: .75rem !important; }

#foogallery-gallery-145 .fg-item-inner,
#foogallery-gallery-145 .fg-image-wrap,
#foogallery-gallery-160 .fg-item-inner,
#foogallery-gallery-160 .fg-image-wrap {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.foogallery .fg-image.is-upgrading {
  opacity: 0 !important;
}

.foogallery .fg-image {
  transition: opacity .18s ease !important;
}

#foogallery-gallery-160 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 105px !important;
  gap: 10px !important;
}

#foogallery-gallery-160 .fg-item {
  grid-column: span 1;
  grid-row: span 3;
  border-radius: 12px !important;
}

#foogallery-gallery-160 .fg-item:nth-child(9n+1),
#foogallery-gallery-160 .fg-item:nth-child(9n+6) {
  grid-column: span 2;
  grid-row: span 4;
}

#foogallery-gallery-160 .fg-item:nth-child(7n+3) {
  grid-column: span 1;
  grid-row: span 3;
}

.downloads-note {
  margin: 0 0 28px;
  color: var(--ink);
  background: rgba(110,231,255,.07);
  border: 1px solid rgba(110,231,255,.2);
}

.resource-filter-bar {
  display: grid;
  gap: 13px;
  margin: 0 0 48px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(0, 134, 233, .09), rgba(0, 207, 249, .035));
  border: 1px solid rgba(0, 207, 249, .18);
  border-radius: 18px;
}

.resource-filter-label {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.resource-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.resource-filter-button {
  min-height: 40px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.resource-filter-button span {
  display: inline-grid;
  min-width: 21px;
  min-height: 21px;
  margin-left: 5px;
  place-items: center;
  color: #9da7b8;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  font-size: .7rem;
}

.resource-filter-button:hover,
.resource-filter-button:focus-visible {
  color: var(--white);
  border-color: rgba(0, 207, 249, .52);
}

.resource-filter-button.is-active {
  color: #04141b;
  background: linear-gradient(135deg, #0086e9, #00cff9);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 174, 241, .22);
}

.resource-filter-button.is-active span {
  color: #04141b;
  background: rgba(255, 255, 255, .4);
}

.resource-groups,
.resource-group-cards {
  display: grid;
  gap: 14px;
}

.download-group + .download-group { margin-top: 52px; }
.download-group-head { margin-bottom: 18px; }
.download-group-head h2 { margin-bottom: 6px; font-size: 1.65rem; }
.download-group-head p { margin: 0; color: var(--muted); }
.download-group[hidden],
.resource-row[hidden] { display: none !important; }

.resource-empty {
  padding: 34px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.resource-empty p {
  margin: 8px auto 20px;
  color: var(--muted);
}

.content-shell { width: min(820px, calc(100% - 40px)); }
.entry-header h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.entry-meta { color: var(--muted); }

.woocommerce div.product .product_title { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.woocommerce div.product .price { color: var(--mint) !important; }
.woocommerce ul.products li.product { background: var(--white); border-color: var(--line); }
.woocommerce-message, .woocommerce-info { color: var(--ink); background: rgba(110,231,255,.08) !important; }

.site-footer { padding: 45px 0 24px; background: #06080c; }
.footer-grid {
  grid-template-columns: 1fr auto auto;
  gap: 60px;
  padding-bottom: 35px;
}
.footer-brand { color: var(--ink); font-size: 1.25rem; font-weight: 900; letter-spacing: -.03em; }
.footer-note { max-width: 430px; margin: 8px 0 0; color: var(--muted); font-size: .86rem; }

@media (max-width: 920px) {
  .main-nav { background: var(--white); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 380px; max-width: 580px; }
  .shirts-panel { grid-template-columns: 1fr; }
  #foogallery-gallery-145 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #foogallery-gallery-160 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #foogallery-gallery-160 .fg-item,
  #foogallery-gallery-160 .fg-item:nth-child(7n+3) { grid-column: span 1; }
  #foogallery-gallery-160 .fg-item:nth-child(9n+1),
  #foogallery-gallery-160 .fg-item:nth-child(9n+6) { grid-column: span 2; }
  .resource-row { grid-template-columns: 170px minmax(0, 1fr); }
  .resource-row .resource-actions { grid-column: 2; width: 100%; display: flex; justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .hero { padding: 52px 0 62px; }
  .hero-art { min-height: 310px; }
  .gallery-view-nav { top: 78px; width: 100%; }
  .gallery-view-nav a { flex: 1; text-align: center; }
  .update-row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .update-date { grid-column: 1 / -1; }
  .update-row p { display: none; }
  .shirts-preview { grid-template-columns: repeat(3, 1fr); }
  .resource-row { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; min-height: 120px; padding: 12px; }
  .resource-row .resource-actions { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
  .resource-row .resource-actions .button { flex: 1; }
  .resource-filter-bar { margin-bottom: 34px; padding: 14px; }
  .resource-filter-buttons { gap: 7px; }
  .resource-filter-button { min-height: 38px; padding: 8px 11px; font-size: .78rem; }
  .resource-meta { display: none; }
  #foogallery-gallery-145 { gap: 8px !important; }
  #foogallery-gallery-145 .fg-item { height: 235px !important; }
  #foogallery-gallery-160 { grid-auto-rows: 90px !important; gap: 8px !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid > div:first-child { grid-column: auto; }
}
