/* Gradient Mesh: a calm generative surface — soft drifting color fields, rounded glass cards, no monospace, no hard edges. Deliberately the opposite of every other theme's dark/sharp/mono language. */
.template-mesh {
  --cyan: #3a4cff;
  --violet: #c0389a;
  --lime: #12946b;
}

.template-mesh.accent-amber { --cyan: #c2540c; --violet: #a1631c; --lime: #8a7614; }
.template-mesh.accent-rose  { --cyan: #c23d6b; --violet: #8b3fae; --lime: #3f7d52; }
.template-mesh.accent-lime  { --cyan: #1f9d63; --violet: #4f7c3f; --lime: #7c9d1f; }

body.template-mesh {
  background: #f7f4ee;
  color: #17140f;
}

.mesh-page {
  position: relative;
  min-height: 100vh;
  background: #f7f4ee;
  color: #17140f;
  overflow: hidden;
}

.mesh-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 45% 41% 59% 55%;
  filter: blur(70px);
  opacity: .55;
  mix-blend-mode: multiply;
  animation: mesh-drift 28s ease-in-out infinite;
}

.mesh-blob-a {
  top: -10%;
  left: -8%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle at 30% 30%, var(--cyan), transparent 70%);
  animation-duration: 28s;
}

.mesh-blob-b {
  top: 18%;
  right: -14%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle at 60% 40%, var(--violet), transparent 70%);
  animation-duration: 34s;
  animation-delay: -6s;
}

.mesh-blob-c {
  bottom: -16%;
  left: 22%;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle at 50% 50%, var(--lime), transparent 70%);
  animation-duration: 40s;
  animation-delay: -14s;
}

@keyframes mesh-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 6%) scale(1.08); }
  66% { transform: translate(-5%, -3%) scale(0.94); }
}

.mesh-grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mesh-header,
.mesh-main,
.mesh-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 9vw));
  margin: 0 auto;
}

.mesh-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mesh-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #17140f;
  text-decoration: none;
  font: 600 14px Manrope, sans-serif;
  letter-spacing: -.01em;
}

.mesh-brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #17140f;
  color: #f7f4ee;
  font: 600 12px Manrope, sans-serif;
}

.mesh-header-tag {
  color: #726b5d;
  font-size: 13px;
  letter-spacing: .02em;
}

.mesh-hero {
  padding: 9vw 0 6vw;
  max-width: 880px;
}

.mesh-eyebrow {
  margin: 0 0 22px;
  color: #726b5d;
  font-size: 14px;
  letter-spacing: .02em;
}

.mesh-hero h1 {
  margin: 0;
  font: 500 clamp(46px, 7vw, 92px) / 1.08 Manrope, sans-serif;
  letter-spacing: -.03em;
  color: #17140f;
}

.mesh-subtitle {
  margin-top: 26px;
}

.mesh-description {
  max-width: 480px;
  margin: 22px 0 0;
  color: #57503f;
  font-size: 17px;
  line-height: 1.75;
}

.mesh-entries {
  padding: 3vw 0 9vw;
}

.mesh-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(23, 20, 15, .14);
  color: #726b5d;
  font-size: 13px;
  letter-spacing: .02em;
}

.mesh-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.mesh-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: 260px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(23, 20, 15, .08);
  backdrop-filter: blur(18px);
  color: #17140f;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 20, 15, .04);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.mesh-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 20px 40px -20px rgba(23, 20, 15, .25);
}

.mesh-card-kicker {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--card-color, var(--cyan));
  font-weight: 600;
}

.mesh-card-icon {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 22px;
  color: var(--card-color, var(--cyan));
}

.mesh-card h2 {
  margin: 0;
  font: 600 24px/1.25 Manrope, sans-serif;
  letter-spacing: -.02em;
}

.mesh-card p {
  margin: 0;
  color: #57503f;
  font-size: 14px;
  line-height: 1.65;
}

.mesh-card-arrow {
  justify-self: start;
  color: var(--card-color, var(--cyan));
  font-size: 19px;
  transition: transform .25s ease;
}

.mesh-card:hover .mesh-card-arrow {
  transform: translateX(4px);
}

.mesh-footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 32px;
  border-top: 1px solid rgba(23, 20, 15, .14);
  color: #726b5d;
  font-size: 13px;
}

@media (max-width: 800px) {
  .mesh-header, .mesh-main, .mesh-footer { width: min(100% - 40px, 680px); }
  .mesh-hero { padding: 60px 0 45px; }
  .mesh-list { grid-template-columns: 1fr; }
  .mesh-footer { display: block; line-height: 2; }
  .mesh-footer span { display: block; }
}

/* Liquid Chrome: one sculptural metallic form as the entire hero, everything else reduced to nothing. */
.template-chrome {
  --cyan: #7dd3fc;
  --violet: #d8b4fe;
  --lime: #bef264;
}

.template-chrome.accent-amber { --cyan: #fbbf24; --violet: #fdba74; --lime: #fde68a; }
.template-chrome.accent-rose  { --cyan: #fda4af; --violet: #f0abfc; --lime: #fecdd3; }
.template-chrome.accent-lime  { --cyan: #bef264; --violet: #86efac; --lime: #d9f99d; }

body.template-chrome {
  background: #0b0b0d;
  color: #eceef1;
}

.chrome-page {
  min-height: 100vh;
  background: #0b0b0d;
  color: #eceef1;
}

.chrome-header,
.chrome-main,
.chrome-footer {
  width: min(1180px, calc(100% - 9vw));
  margin: 0 auto;
}

.chrome-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.chrome-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #eceef1;
  text-decoration: none;
  font: 600 14px Manrope, sans-serif;
  letter-spacing: -.01em;
}

.chrome-brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(160deg, #f5f6f8, #9aa0ab 55%, #eceef1);
  color: #0b0b0d;
  font: 600 12px Manrope, sans-serif;
}

.chrome-header-tag {
  color: #8b8f97;
  font-size: 13px;
}

.chrome-stage {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  place-items: center;
  padding: 6vw 0 4vw;
}

.chrome-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(62vw, 620px);
  height: min(62vw, 620px);
  transform: translate(-50%, -50%);
  --lx: 32%;
  --ly: 28%;
}

.chrome-blob-shape {
  width: 100%;
  height: 100%;
  border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%;
  background:
    radial-gradient(circle at var(--lx) var(--ly), rgba(255, 255, 255, .95), transparent 42%),
    linear-gradient(160deg, #3a3d44 0%, #0e0f11 32%, #8b8f97 55%, #15161a 78%, #cfd2d8 100%);
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, .55),
    0 40px 120px -30px rgba(0, 0, 0, .7);
  animation: chrome-morph 16s ease-in-out infinite;
  filter: saturate(1.05);
}

@keyframes chrome-morph {
  0%, 100% { border-radius: 38% 62% 55% 45% / 48% 42% 58% 52%; }
  33% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
  66% { border-radius: 46% 54% 62% 38% / 40% 45% 55% 60%; }
}

.chrome-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
  padding: 0 5vw;
}

.chrome-eyebrow {
  margin: 0 0 22px;
  color: #9aa0ab;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chrome-copy h1 {
  margin: 0;
  font: 600 clamp(42px, 6.4vw, 82px) / 1.08 Manrope, sans-serif;
  letter-spacing: -.03em;
  color: #f4f5f7;
}

.chrome-subtitle {
  margin: 24px auto 0;
}

.chrome-description {
  max-width: 480px;
  margin: 20px auto 0;
  color: #a7abb3;
  font-size: 16px;
  line-height: 1.75;
}

.chrome-entries {
  padding: 4vw 0 8vw;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.chrome-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: #8b8f97;
  font-size: 13px;
}

.chrome-list {
  margin-top: 18px;
}

.chrome-row {
  display: grid;
  grid-template-columns: 40px 100px minmax(0, 1fr) minmax(0, 1.4fr) 26px 24px;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #eceef1;
  text-decoration: none;
  transition: background .2s ease, padding-left .2s ease;
}

.chrome-list a:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.chrome-row:hover {
  padding-left: 14px;
  background: rgba(255, 255, 255, .04);
}

.chrome-row-index {
  color: #6d7178;
  font-size: 13px;
}

.chrome-row-kicker {
  color: var(--card-color, var(--cyan));
  font-size: 12px;
  letter-spacing: .04em;
}

.chrome-row-name {
  font: 600 19px Manrope, sans-serif;
  letter-spacing: -.01em;
}

.chrome-row-desc {
  color: #8b8f97;
  font-size: 13px;
  line-height: 1.5;
}

.chrome-row-icon {
  color: var(--card-color, var(--cyan));
  font-size: 18px;
  text-align: center;
}

.chrome-row-arrow {
  color: #6d7178;
  font-size: 17px;
  text-align: right;
  transition: transform .2s ease, color .2s ease;
}

.chrome-row:hover .chrome-row-arrow {
  color: var(--card-color, var(--cyan));
  transform: translateX(3px);
}

.chrome-footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #8b8f97;
  font-size: 13px;
}

@media (max-width: 800px) {
  .chrome-header, .chrome-main, .chrome-footer { width: min(100% - 40px, 680px); }
  .chrome-stage { min-height: auto; padding: 60px 0 40px; }
  .chrome-blob { width: min(85vw, 420px); height: min(85vw, 420px); }
  .chrome-row {
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    grid-template-rows: auto auto;
    gap: 8px 12px;
  }
  .chrome-row-kicker { grid-column: 2; grid-row: 1; }
  .chrome-row-name { grid-column: 2; grid-row: 2; }
  .chrome-row-desc { display: none; }
  .chrome-row-icon { display: none; }
  .chrome-row-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .chrome-footer { display: block; line-height: 2; }
  .chrome-footer span { display: block; }
}
