/* Each theme now has a distinct visual composition, not only a color token swap. */
.hero {
  position: relative;
}
.inspiration-section {
  border-top: 1px solid var(--border-subtle);
  padding: 54px 0 24px;
}
.inspiration-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}
.inspiration-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(42px, 5vw, 65px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.08;
  margin: 10px 0 0;
}
.inspiration-heading h2 em {
  color: var(--accent-primary);
  font-style: italic;
}
.inspiration-heading > p {
  color: var(--text-secondary);
  font-size: 11px;
  max-width: 300px;
}
.gallery-row {
  margin: 0 -28px 24px;
}
.gallery-row-heading {
  align-items: center;
  display: flex;
  gap: 13px;
  margin: 0 auto 13px;
  max-width: 1280px;
  padding: 0 28px;
}
.gallery-row-heading h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}
.gallery-row-heading > span {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
}
.gallery-row-heading > div {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.gallery-arrow {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-primary);
  height: 30px;
  width: 30px;
}
.gallery-arrow:hover {
  background: var(--accent-primary);
  color: var(--bg-canvas);
}
.gallery-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 28px 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-track figure {
  border-radius: var(--radius-card);
  flex: 0 0 clamp(190px, 20vw, 250px);
  height: 170px;
  margin: 0;
  overflow: hidden;
}
.gallery-track figure:nth-child(2n) {
  height: 150px;
  margin-top: 20px;
}
.gallery-track img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
  width: 100%;
}
.gallery-track figure:hover img {
  transform: scale(1.05);
}
html[data-theme="linear-dark"] .inspiration-section {
  background: linear-gradient(180deg, transparent, var(--accent-glow));
  margin-inline: -28px;
  padding-inline: 28px;
}
html[data-theme="stripe-light"] .gallery-track figure {
  border-radius: 14px;
}
html[data-theme="editorial-wealth"] .gallery-track figure:nth-child(odd) {
  transform: rotate(-2deg);
}
html[data-theme="nordic-minimal"] .gallery-track figure {
  border-radius: 30px;
  filter: saturate(0.75);
}
html[data-theme="algorithmic-quant"] .gallery-track figure {
  border-radius: 2px;
  filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(1.8);
}
.template-chooser {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin: 0 auto 16px;
  padding: 11px 14px;
  max-width: 1280px;
  padding: 18px 20px;
  position: relative;
  z-index: 2;
}
.chooser-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.chooser-heading h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 3px 0 0;
}
.chooser-heading select {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-size: 10px;
  padding: 9px;
}
.chooser-copy {
  color: var(--text-secondary);
  font-size: 10px;
  margin: 7px 0 10px;
}
.template-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(5, 1fr);
}
.template-option {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px;
  text-align: left;
  transition:
    border 0.2s,
    transform 0.2s;
}
.template-option:hover,
.template-option.active {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}
.template-option.active {
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.template-option strong {
  font-size: 10px;
  margin-top: 6px;
}
.template-option small {
  color: var(--text-secondary);
  font-size: 9px;
}
.template-thumb {
  align-items: flex-end;
  background: #101116;
  display: flex;
  height: 42px;
  justify-content: space-between;
  overflow: hidden;
  padding: 7px;
  position: relative;
}
.template-thumb:before {
  background: var(--thumb-art);
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0.65;
  position: absolute;
}
.template-thumb:after {
  background: linear-gradient(135deg, var(--thumb-accent), transparent 60%);
  content: "";
  inset: 0;
  opacity: 0.7;
  position: absolute;
}
.template-thumb i,
.template-thumb b {
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  position: relative;
  z-index: 1;
}
.template-thumb b {
  font-size: 7px;
}
.template-linear .template-thumb {
  --thumb-art: url("https://images.unsplash.com/photo-1513364776144-60967b0f800f?auto=format&fit=crop&w=300&q=70");
  --thumb-accent: #6366f1;
}
.template-stripe .template-thumb {
  --thumb-art: url("https://images.unsplash.com/photo-1531058020387-3be344556be6?auto=format&fit=crop&w=300&q=70");
  --thumb-accent: #2563eb;
}
.template-editorial .template-thumb {
  --thumb-art: url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=300&q=70");
  --thumb-accent: #d4af37;
}
.template-nordic .template-thumb {
  --thumb-art: url("https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=300&q=70");
  --thumb-accent: #ea580c;
}
.template-quant .template-thumb {
  --thumb-art: url("https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=300&q=70");
  --thumb-accent: #10b981;
}
.hero-art {
  background-color: var(--bg-surface);
  background-image: url("https://images.unsplash.com/photo-1549490349-8643362247b5?auto=format&fit=crop&w=900&q=85");
  background-position: center;
  background-size: cover;
  border: 1px solid var(--border-subtle);
  height: 210px;
  overflow: hidden;
  position: absolute;
  right: 9%;
  top: 76px;
  width: 220px;
}
.hero-art:after {
  background: linear-gradient(145deg, transparent 30%, var(--accent-glow));
  content: "";
  inset: 0;
  position: absolute;
}
.hero-art:before {
  color: #fff;
  content: "S";
  font-family: var(--font-heading);
  font-size: 120px;
  font-style: italic;
  left: 20px;
  line-height: 1;
  position: absolute;
  top: 55px;
  z-index: 1;
}
.art-label {
  bottom: 12px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  position: absolute;
  right: 12px;
  text-shadow: 0 1px 8px #000;
  z-index: 1;
}
.art-label-linear,
.art-label-stripe,
.art-label-nordic,
.art-label-quant {
  display: none;
}
.service-card:before {
  background: var(--service-art) center/cover;
  content: "";
  display: block;
  height: 54px;
  margin: -15px -15px 11px;
  opacity: 0.82;
}
.service-card:nth-child(1) {
  --service-art: url("https://images.unsplash.com/photo-1516975080664-ed2fc6a32937?auto=format&fit=crop&w=500&q=80");
}
.service-card:nth-child(2) {
  --service-art: url("https://images.unsplash.com/photo-1596462502278-27bfdc403348?auto=format&fit=crop&w=500&q=80");
}
.service-card:nth-child(3) {
  --service-art: url("https://images.unsplash.com/photo-1530103862676-de8c9debad1d?auto=format&fit=crop&w=500&q=80");
}
.service-card:nth-child(4) {
  --service-art: url("https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=500&q=80");
}
html[data-theme="linear-dark"] body:before {
  background-size: 24px 24px;
  opacity: 0.14;
}
html[data-theme="linear-dark"] .hero {
  min-height: 390px;
}
html[data-theme="linear-dark"] .hero-art {
  background-image: url("https://images.unsplash.com/photo-1513364776144-60967b0f800f?auto=format&fit=crop&w=900&q=85");
  border-color: #3538a1;
  border-radius: 8px;
  box-shadow: 0 0 70px var(--accent-glow);
  height: 310px;
  right: 4%;
  top: 92px;
  transform: rotate(2deg);
  width: 290px;
}
html[data-theme="linear-dark"] .art-label-default {
  display: none;
}
html[data-theme="linear-dark"] .art-label-linear {
  display: block;
}
html[data-theme="linear-dark"] .hero-art:before {
  content: "01";
  font-family: var(--font-mono);
  font-size: 72px;
  font-style: normal;
  left: 18px;
  top: 18px;
}
html[data-theme="linear-dark"] .service-card:before {
  filter: saturate(0.35) contrast(1.15);
  height: 56px;
  margin: -20px -20px 15px;
}
html[data-theme="stripe-light"] body:before {
  background-size: 32px 32px;
  opacity: 0.18;
}
html[data-theme="stripe-light"] .hero {
  background: linear-gradient(90deg, transparent 62%, #dbeafe 62%);
  margin-inline: -28px;
  padding-inline: 28px;
}
html[data-theme="stripe-light"] .hero-art {
  background-image: url("https://images.unsplash.com/photo-1531058020387-3be344556be6?auto=format&fit=crop&w=900&q=85");
  border: 8px solid #fff;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.2);
  height: 190px;
  right: 12%;
  top: 102px;
  width: 205px;
}
html[data-theme="stripe-light"] .art-label-default {
  display: none;
}
html[data-theme="stripe-light"] .art-label-stripe {
  display: block;
  color: #0f172a;
  text-shadow: none;
}
html[data-theme="stripe-light"] .service-card {
  border-radius: 8px;
}
html[data-theme="editorial-wealth"] .hero-art {
  background-image: url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=900&q=85");
  border-color: #a98624;
  box-shadow: 18px 18px 0 var(--accent-glow);
  height: 220px;
  right: 11%;
  top: 92px;
  transform: rotate(-4deg);
  width: 215px;
}
html[data-theme="editorial-wealth"] .art-label-default {
  display: block;
}
html[data-theme="editorial-wealth"] .service-card:nth-child(odd) {
  transform: translateY(12px);
}
html[data-theme="editorial-wealth"] .service-card:nth-child(odd):hover {
  transform: translateY(8px);
}
html[data-theme="nordic-minimal"] body:before {
  background-size: 100% 100%;
  background-image: linear-gradient(
    120deg,
    transparent 0 49.8%,
    #e7e5e4 50%,
    transparent 50.2%
  );
  opacity: 0.45;
}
html[data-theme="nordic-minimal"] .hero {
  min-height: 420px;
  padding-top: 72px;
}
html[data-theme="nordic-minimal"] .hero-art {
  background-image: url("https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=900&q=85");
  border: 0;
  border-radius: 50%;
  filter: grayscale(0.15);
  height: 190px;
  top: 80px;
  width: 190px;
  right: 14%;
  top: 110px;
  width: 250px;
}
html[data-theme="nordic-minimal"] .art-label-default {
  display: none;
}
html[data-theme="nordic-minimal"] .art-label-nordic {
  display: block;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
html[data-theme="nordic-minimal"] .hero-art:before {
  content: "○";
  font-family: var(--font-sans);
  font-size: 190px;
  font-style: normal;
  left: 28px;
  top: 20px;
}
html[data-theme="nordic-minimal"] .service-card:before {
  border-radius: 14px;
  filter: grayscale(1);
  height: 90px;
  margin: -20px -20px 15px;
}
html[data-theme="algorithmic-quant"] body:before {
  background-size: 18px 18px;
  opacity: 0.25;
}
html[data-theme="algorithmic-quant"] .hero {
  border-bottom: 1px solid var(--accent-primary);
  min-height: 370px;
}
html[data-theme="algorithmic-quant"] .hero-art {
  background-image:
    linear-gradient(rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.2)),
    url("https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=900&q=85");
  border-color: var(--accent-primary);
  height: 190px;
  top: 72px;
  width: 220px;
  right: 3%;
  top: 105px;
  width: 280px;
}
html[data-theme="algorithmic-quant"] .art-label-default {
  display: none;
}
html[data-theme="algorithmic-quant"] .art-label-quant {
  display: block;
  color: var(--accent-primary);
  text-shadow: none;
}
html[data-theme="algorithmic-quant"] .hero-art:before {
  content: "Σ";
  font-family: var(--font-mono);
  font-size: 100px;
  font-style: normal;
  left: 22px;
  top: 58px;
}
html[data-theme="algorithmic-quant"] .service-card:before {
  filter: grayscale(1) sepia(1) hue-rotate(90deg) saturate(2);
  height: 42px;
  margin: -20px -20px 15px;
}
@media (max-width: 780px) {
  .gallery-row {
    margin-inline: 0;
  }
  .gallery-row-heading {
    padding-inline: 18px;
  }
  .gallery-track {
    padding-inline: 18px;
  }
  .inspiration-heading h2 {
    line-height: 1.08;
  }
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-theme] .hero-art {
    height: 150px;
    margin-top: 28px;
    opacity: 0.9;
    position: relative;
    right: auto;
    top: auto;
    transform: none !important;
    width: 100%;
    margin-top: 45px;
  }
  html[data-theme] .inspiration-heading h2 {
    line-height: 1.15;
  }
  .hero-stat {
    margin-top: 40px;
  }
  html[data-theme="stripe-light"] .hero {
    background: none;
    margin-inline: 0;
    padding-inline: 0;
  }
  html[data-theme="linear-dark"] .inspiration-section {
    margin-inline: 0;
    padding-inline: 0;
  }
  html[data-theme="nordic-minimal"] .hero {
    min-height: 0;
    padding-top: 46px;
  }
  .service-card:before {
    margin: -15px -15px 11px;
  }
}
