/* TextElit portfolio case */
body.single-portfolio {
  background:var(--color-bg)
}

.te-case {
  --case-muted:color-mix(in srgb, var(--color-secondary) 82%, var(--color-text));
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:transparent;
  color:var(--color-text)
}

.te-case * {
  box-sizing:border-box
}

.te-case__container {
  position:relative;
  z-index:1;
  width:min(1180px, calc(100% - 32px));
  max-width:1180px;
  margin-inline:auto
}

.te-case::before, .te-case::after {
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:0;
  border-radius:999px
}

.te-case::before {
  background:color-mix(in srgb, var(--color-primary) 9%, transparent);
  transform:rotate(-10deg)
}

.te-case::after {
  border:1px solid color-mix(in srgb, var(--color-primary) 24%, transparent);
  box-shadow:34px 18px 0 -14px color-mix(in srgb, var(--color-primary) 10%, transparent);
  opacity:.7
}

.te-case-hero::before {
  width:clamp(300px, 32vw, 500px);
  height:clamp(190px, 22vw, 330px);
  right:clamp(-190px, -12vw, -96px);
  top:clamp(72px, 8vw, 112px);
  filter:blur(2px);
  opacity:.66;
  transform:rotate(-8deg)
}

.te-case-hero::after {
  width:clamp(140px, 13vw, 180px);
  height:clamp(140px, 13vw, 180px);
  right:5%;
  bottom:8%;
  opacity:.64
}

.te-case-meta::before {
  display:none
}

.te-case-meta::after {
  width:clamp(120px, 12vw, 170px);
  height:clamp(120px, 12vw, 170px);
  left:7%;
  bottom:clamp(28px, 4vw, 56px);
  opacity:.62
}

.te-case-section:nth-of-type(odd)::before {
  width:clamp(250px, 28vw, 420px);
  height:clamp(140px, 15vw, 220px);
  right:clamp(-140px, -9vw, -76px);
  top:clamp(50px, 6vw, 86px);
  opacity:.66
}

.te-case-section:nth-of-type(odd)::after {
  width:clamp(136px, 14vw, 190px);
  height:clamp(136px, 14vw, 190px);
  right:7%;
  bottom:clamp(34px, 5vw, 64px);
  opacity:.6
}

.te-case-section:nth-of-type(even)::before {
  width:clamp(230px, 24vw, 330px);
  height:clamp(140px, 15vw, 190px);
  left:clamp(-120px, -8vw, -70px);
  top:clamp(56px, 7vw, 84px);
  opacity:.62
}

.te-case-section:nth-of-type(even)::after {
  width:clamp(126px, 13vw, 178px);
  height:clamp(126px, 13vw, 178px);
  left:8%;
  bottom:clamp(34px, 5vw, 62px);
  opacity:.58
}

.te-case-cta::before {
  width:clamp(240px, 26vw, 380px);
  height:clamp(132px, 14vw, 210px);
  left:clamp(-130px, -8vw, -76px);
  bottom:clamp(24px, 4vw, 48px);
  opacity:.64
}

.te-case-cta::after {
  width:clamp(130px, 13vw, 180px);
  height:clamp(130px, 13vw, 180px);
  left:10%;
  top:clamp(24px, 4vw, 48px);
  opacity:.64
}

.te-case-hero {
  position:relative;
  overflow:hidden;
  padding:clamp(132px, 11vw, 164px) 0 clamp(64px, 7vw, 96px);
  background:transparent
}

.te-case-hero__container {
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(340px, .8fr);
  gap:clamp(34px, 6vw, 78px);
  align-items:center
}

.te-case__eyebrow {
  color:var(--color-primary);
  font:700 18px/1.25 Inter-Bold, Inter, sans-serif;
  letter-spacing:.11em;
  text-transform:uppercase
}

.te-case-hero__title {
  margin:16px 0 0;
  max-width:780px;
  font-family:Inter-Bold, Inter, sans-serif;
  font-size:var(--font-sizes-h1);
  line-height:1.08
}

.te-case-hero__summary {
  margin-top:22px;
  max-width:720px;
  color:var(--case-muted);
  font-size:clamp(17px, 1.45vw, 20px);
  line-height:1.7
}

.te-case-hero__summary p {
  margin:0
}

.te-case-hero__visual {
  position:relative;
  border:1px solid var(--color-border);
  border-radius:24px;
  background:var(--color-surface);
  padding:18px;
  box-shadow:0 24px 60px rgba(26, 38, 51, .08)
}

.te-case-hero__image, .te-case-hero__image img {
  display:block;
  width:100%
}

.te-case-hero__image img {
  max-height:560px;
  object-fit:contain;
  object-position:top center;
  border-radius:14px
}


html[data-theme="dark"] .te-case-hero__image img,
html.theme-dark .te-case-hero__image img,
body.theme-dark .te-case-hero__image img {
  filter:grayscale(.22) sepia(.03) saturate(.82) hue-rotate(342deg) contrast(.94) brightness(.8)
}

.te-case-meta {
  padding:0 0 clamp(64px, 7vw, 92px)
}

.te-case-meta__grid {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
  width:100%;
  margin-inline:auto
}

.te-case-meta__item {
  flex:0 1 calc((100% - 42px)/4);
  width:calc((100% - 42px)/4);
  min-height:112px;
  padding:20px;
  border:1px solid var(--color-border);
  border-radius:14px;
  background:var(--color-surface)
}

.te-case-meta__item p {
  display:flex;
  flex-direction:column;
  margin:0
}

.te-case-meta__label {
  display:block;
  color:var(--color-primary);
  font:700 13px/1.25 Inter-Bold, Inter, sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase
}

.te-case-meta__value {
  display:block;
  margin-top:10px;
  font:700 clamp(16px, 1.4vw, 19px)/1.35 Inter-Bold, Inter, sans-serif
}

.te-case-section {
  padding:clamp(64px, 7vw, 92px) 0
}

.te-case-section--surface {
  background:transparent
}

.te-case-section__container {
  display:grid;
  grid-template-columns:minmax(210px, .34fr) minmax(0, 1fr);
  gap:clamp(34px, 7vw, 92px);
  align-items:start
}

.te-case-section__head {
  position:sticky;
  top:120px;
  display:grid;
  align-content:start;
  justify-items:center;
  gap:16px;
  text-align:center
}

.te-case-section__head>img, .te-case-section__head>img {
  display:block;
  width:min(240px, 100%);
  max-width:100%;
  height:auto;
  max-height:340px;
  object-fit:contain
}

.te-case-section__head .te-case__eyebrow, .te-case-section__head .te-case__eyebrow p {
  margin:0
}

.te-case-section__title {
  margin:0;
  font-family:Inter-Bold, Inter, sans-serif;
  font-size:var(--font-sizes-h2);
  line-height:1.12
}

.te-case-section__content {
  padding:clamp(24px, 4vw, 44px);
  border:1px solid var(--color-border);
  border-left:4px solid var(--color-primary);
  border-radius:18px;
  background:var(--color-surface);
  color:var(--case-muted);
  font-size:clamp(16px, 1.25vw, 18px);
  line-height:1.75
}

.te-case-section__content p:first-child {
  margin-top:0
}

.te-case-section__content p:last-child {
  margin-bottom:0
}

.te-case-section__content h3 {
  color:var(--color-text);
  font-size:var(--font-sizes-h4)
}

.te-case-section__content li+li {
  margin-top:8px
}

.te-case__container:has(> .te-case-gallery) {
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(24px, 4vw, 38px);
  align-items:start
}

.te-case__container:has(> .te-case-gallery) > .te-case-section__head {
  position:relative;
  top:auto;
  z-index:1;
  justify-items:start;
  text-align:left;
  max-width:860px;
  margin-inline:0 auto
}

.te-case__container:has(> .te-case-gallery) > .te-case-gallery {
  width:100%;
  min-width:0
}

.te-case-gallery__grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  align-items:start
}

.te-case-gallery__item {
  position:relative;
  display:block;
  height:clamp(220px, 22vw, 320px);
  min-height:0;
  max-height:none;
  overflow:hidden;
  padding:10px;
  border:1px solid var(--color-border);
  border-radius:16px;
  background:var(--color-surface);
  text-decoration:none;
  box-shadow:0 18px 44px rgba(26, 38, 51, .06)
}

.te-case-gallery__item::after {
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:10px;
  height:56px;
  border-radius:0 0 10px 10px;
  background:linear-gradient(180deg, transparent, color-mix(in srgb, var(--color-surface) 94%, transparent));
  pointer-events:none
}

.te-case-gallery__image {
  display:block;
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
  object-position:top center;
  border-radius:10px;
  background:color-mix(in srgb, var(--color-surface) 86%, transparent)
}


/* Portfolio examples: keep thumbnails calm on the page, originals stay untouched in the lightbox. */
.te-case-gallery__item .te-case-gallery__image {
  filter:grayscale(.42) sepia(.04) saturate(.78) hue-rotate(342deg) contrast(1.03) brightness(1.02);
  transition:filter .22s ease, transform .22s ease
}

.te-case-gallery__item:hover .te-case-gallery__image,
.te-case-gallery__item:focus-visible .te-case-gallery__image {
  filter:grayscale(.2) sepia(.03) saturate(.95) hue-rotate(342deg) contrast(1.04) brightness(1.03)
}


html[data-theme="dark"] .te-case-gallery__item .te-case-gallery__image,
html.theme-dark .te-case-gallery__item .te-case-gallery__image,
body.theme-dark .te-case-gallery__item .te-case-gallery__image {
  filter:grayscale(.5) sepia(.05) saturate(.66) hue-rotate(342deg) contrast(.92) brightness(.72)
}

html[data-theme="dark"] .te-case-gallery__item:hover .te-case-gallery__image,
html[data-theme="dark"] .te-case-gallery__item:focus-visible .te-case-gallery__image,
html.theme-dark .te-case-gallery__item:hover .te-case-gallery__image,
html.theme-dark .te-case-gallery__item:focus-visible .te-case-gallery__image,
body.theme-dark .te-case-gallery__item:hover .te-case-gallery__image,
body.theme-dark .te-case-gallery__item:focus-visible .te-case-gallery__image {
  filter:grayscale(.34) sepia(.04) saturate(.78) hue-rotate(342deg) contrast(.95) brightness(.8)
}

.te-case-gallery__hint {
  position:absolute;
  z-index:2;
  right:22px;
  bottom:22px;
  padding:8px 12px;
  border-radius:999px;
  background:color-mix(in srgb, var(--color-text) 86%, transparent);
  color:var(--color-bg);
  font:700 13px/1.2 Inter-Bold, Inter, sans-serif;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .2s ease, transform .2s ease
}

.te-case-gallery__item:hover .te-case-gallery__hint, .te-case-gallery__item:focus-visible .te-case-gallery__hint {
  opacity:1;
  transform:none
}



.te-case-testimonial {
  display:grid;
  gap:clamp(18px, 2.4vw, 28px)
}

.te-case-testimonial__text {
  max-width:72ch
}

.te-case-testimonial__text p:first-child {
  margin-top:0
}

.te-case-testimonial__text p:last-child {
  margin-bottom:0
}

.te-case-testimonial__screenshot {
  display:block;
  width:100%;
  overflow:hidden;
  padding:clamp(10px, 1.6vw, 16px);
  border:1px solid var(--color-border);
  border-radius:16px;
  background:color-mix(in srgb, var(--color-surface) 82%, var(--color-bg));
  box-shadow:0 18px 46px rgba(15, 23, 42, .08)
}

.te-case-testimonial__image {
  display:block;
  width:100%;
  height:auto;
  max-height:clamp(260px, 42vw, 520px);
  object-fit:contain;
  border-radius:12px
}


html[data-theme="dark"] .te-case-testimonial__image,
html.theme-dark .te-case-testimonial__image,
body.theme-dark .te-case-testimonial__image {
  filter:grayscale(.34) sepia(.04) saturate(.74) hue-rotate(342deg) contrast(.92) brightness(.78)
}

html.theme-dark .te-case-testimonial__screenshot,
html[data-theme="dark"] .te-case-testimonial__screenshot,
body.theme-dark .te-case-testimonial__screenshot {
  box-shadow:0 18px 46px rgba(0, 0, 0, .22)
}

.te-case-lightbox[hidden] {
  display:none
}

.te-case-lightbox {
  position:fixed;
  inset:0;
  z-index:100000;
  color:#fff
}

.te-case-lightbox__backdrop {
  position:absolute;
  inset:0;
  background:rgba(7, 12, 18, .9);
  backdrop-filter:blur(10px)
}

.te-case-lightbox__panel {
  position:absolute;
  inset:18px;
  display:grid;
  grid-template-rows:auto minmax(0, 1fr);
  overflow:hidden;
  border:1px solid rgba(255, 255, 255, .16);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(17, 24, 39, .98), rgba(7, 12, 18, .98));
  box-shadow:0 28px 90px rgba(0, 0, 0, .46)
}

.te-case-lightbox__toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:68px;
  padding:10px 14px 10px 22px;
  border-bottom:1px solid rgba(255, 255, 255, .12);
  background:rgba(255, 255, 255, .035)
}

.te-case-lightbox__status {
  display:grid;
  gap:5px;
  min-width:0
}

.te-case-lightbox__counter {
  font:700 14px/1 Inter-Bold, Inter, sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff
}

.te-case-lightbox__hint-text {
  color:rgba(255, 255, 255, .72);
  font:500 13px/1.35 Inter-Regular, Inter, sans-serif
}

.te-case-lightbox__hint-text--caption {
  max-width:min(620px, 68vw);
  color:var(--color-primary);
  font:700 15px/1.35 Inter-Bold, Inter, sans-serif
}

.te-case-lightbox__controls {
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto
}

.te-case-lightbox__control,
.te-case-lightbox__zoom,
.te-case-lightbox__close {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:42px;
  border:1px solid rgba(255, 255, 255, .16);
  border-radius:999px;
  background:rgba(255, 255, 255, .08);
  color:#fff;
  font:700 15px/1 Inter-Bold, Inter, sans-serif;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .18s ease
}

.te-case-lightbox__control {
  width:42px;
  font-size:22px
}

.te-case-lightbox__zoom {
  min-width:70px;
  padding:0 14px
}

.te-case-lightbox__close {
  width:42px;
  font-size:30px;
  line-height:1
}

.te-case-lightbox__control:hover,
.te-case-lightbox__zoom:hover,
.te-case-lightbox__close:hover,
.te-case-lightbox__control:focus-visible,
.te-case-lightbox__zoom:focus-visible,
.te-case-lightbox__close:focus-visible {
  border-color:rgba(255, 127, 80, .72);
  background:rgba(255, 127, 80, .18);
  outline:none;
  transform:translateY(-1px)
}

.te-case-lightbox__viewport {
  overflow:auto;
  padding:24px;
  text-align:center;
  overscroll-behavior:contain;
  scrollbar-color:rgba(255, 127, 80, .55) rgba(255, 255, 255, .08);
  scrollbar-width:thin
}

.te-case-lightbox__image {
  display:block;
  width:min(760px, calc(100vw - 96px));
  max-width:100%;
  height:auto;
  margin:0 auto;
  border-radius:14px;
  background:#fff;
  box-shadow:0 20px 70px rgba(0, 0, 0, .45);
  user-select:none
}

.te-case-lightbox__nav {
  position:absolute;
  top:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:64px;
  border:1px solid rgba(255, 255, 255, .16);
  border-radius:14px;
  background:rgba(7, 12, 18, .56);
  color:#fff;
  font-size:42px;
  cursor:pointer;
  transform:translateY(-50%);
  transition:background .18s ease, border-color .18s ease
}

.te-case-lightbox__nav:hover,
.te-case-lightbox__nav:focus-visible {
  border-color:rgba(255, 127, 80, .72);
  background:rgba(255, 127, 80, .18);
  outline:none
}

.te-case-lightbox__nav--prev {
  left:28px
}

.te-case-lightbox__nav--next {
  right:28px
}

.te-case-lightbox-open {
  overflow:hidden
}

.te-case-cta {
  padding:clamp(70px, 8vw, 108px) 0;
  background:transparent
}

.te-case-cta__panel {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:32px;
  align-items:center;
  padding:clamp(28px, 5vw, 54px);
  border:1px solid var(--color-border);
  border-radius:24px;
  background:linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 9%, var(--color-bg)), var(--color-surface))
}

.te-case-cta__title {
  margin:12px 0 0;
  font-family:Inter-Bold, Inter, sans-serif;
  font-size:var(--font-sizes-h2);
  line-height:1.12
}

.te-case-cta__text {
  margin-top:14px;
  color:var(--case-muted);
  font-size:18px;
  line-height:1.65
}

.te-case-cta__text p {
  margin:0
}

.te-case .te-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:0 28px;
  border-radius:999px;
  text-decoration:none;
  font-family:Inter-Bold, Inter, sans-serif;
  font-weight:700
}

.te-case .te-btn-primary {
  border:1px solid var(--color-primary);
  background:var(--color-primary);
  color:#fff;
  box-shadow:0 14px 28px color-mix(in srgb, var(--color-primary) 28%, transparent)
}

html[data-theme="dark"] .te-case {
  --case-muted:var(--color-secondary)
}

html[data-theme="dark"] .te-case::before {
  background:color-mix(in srgb, var(--color-primary) 6%, transparent);
  opacity:.42
}

html[data-theme="dark"] .te-case::after {
  border-color:color-mix(in srgb, var(--color-primary) 18%, transparent);
  box-shadow:28px 18px 0 -14px color-mix(in srgb, var(--color-primary) 6%, transparent);
  opacity:.38
}

html[data-theme="dark"] .te-case-hero__visual, html[data-theme="dark"] .te-case-meta__item, html[data-theme="dark"] .te-case-section__content {
  box-shadow:none
}

@media(max-width:980px) {
.te-case-hero__container, .te-case-section__container {
  grid-template-columns:1fr
}

.te-case-section__head {
  position:static
}

.te-case-section__head>img, .te-case-section__head>img {
  width:min(190px, 45vw);
  max-height:285px
}

.te-case-gallery__grid {
  grid-template-columns:repeat(2, minmax(0, 1fr))
}

.te-case-gallery__item {
  height:clamp(220px, 38vw, 300px)
}

.te-case-meta__item {
  flex-basis:calc((100% - 14px)/2);
  width:calc((100% - 14px)/2)
}

.te-case-cta__panel {
  grid-template-columns:1fr
}

.te-case-cta__action {
  justify-self:start
}
}

@media(max-width:640px) {
.te-case-hero::before, .te-case-meta::before, .te-case-cta::before {
  width:210px;
  height:132px;
  opacity:.42
}

.te-case-hero::after, .te-case-meta::after, .te-case-cta::after {
  width:116px;
  height:116px;
  opacity:.38
}

.te-case-section::before, .te-case-section::after {
  opacity:.18
}

.te-case-lightbox__panel {
  inset:0;
  border:0;
  border-radius:0
}

.te-case-lightbox__toolbar {
  align-items:flex-start;
  flex-direction:column;
  min-height:0;
  padding:12px
}

.te-case-lightbox__hint-text {
  font-size:12px
}

.te-case-lightbox__controls {
  width:100%;
  justify-content:flex-end
}

.te-case-lightbox__viewport {
  padding:12px
}

.te-case-lightbox__nav {
  top:auto;
  bottom:18px;
  width:44px;
  height:52px
}

.te-case-lightbox__nav--prev {
  left:18px
}

.te-case-lightbox__nav--next {
  right:18px
}

.te-case-section__head>img, .te-case-section__head>img {
  width:min(155px, 52vw);
  max-height:235px
}

.te-case-gallery__item {
  height:260px;
  min-height:0;
  max-height:none;
  padding:10px
}

.te-case-gallery__hint {
  opacity:1;
  transform:none;
  right:16px;
  bottom:16px
}

.te-case__container {
  width:min(100% - 28px, 1180px)
}

.te-case-hero {
  padding:88px 0 48px
}

.te-case__eyebrow {
  font-size:14px
}

.te-case-gallery__grid {
  grid-template-columns:1fr
}

.te-case-meta__item {
  flex-basis:100%;
  width:100%
}

.te-case-section {
  padding:52px 0
}

.te-case-section__content {
  padding:22px 18px
}

.te-case .te-btn {
  width:100%
}
}

/* TextElit portfolio archive */
body.page-id-1013 {
  background: var(--color-bg);
}

.te-portfolio-page {
  --portfolio-count-success: var(--color-success, #168a4a);
  --portfolio-count-warning: var(--color-danger, var(--color-error, #e53935));
  --portfolio-muted: color-mix(in srgb, var(--color-secondary) 84%, var(--color-text));
  --te-primary: var(--color-primary);
  --te-border: var(--color-border);
  --te-text: var(--color-text);
  --te-surface: var(--color-surface);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  color: var(--color-text);
}

.te-portfolio-page * {
  box-sizing: border-box;
}

.te-portfolio-page__container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin-inline: auto;
}

.te-portfolio-page::before,
.te-portfolio-page::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
}

.te-portfolio-page::before {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  transform: rotate(-10deg);
}

.te-portfolio-page::after {
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  box-shadow: 34px 18px 0 -14px color-mix(in srgb, var(--color-primary) 9%, transparent);
}

.te-portfolio-hero {
  padding: clamp(124px, 11vw, 168px) 0 clamp(58px, 7vw, 92px);
}

.te-portfolio-hero::before {
  width: clamp(300px, 32vw, 500px);
  height: clamp(190px, 22vw, 330px);
  right: clamp(-190px, -12vw, -96px);
  top: clamp(72px, 8vw, 112px);
  opacity: .62;
}

.te-portfolio-hero::after {
  width: clamp(140px, 13vw, 180px);
  height: clamp(140px, 13vw, 180px);
  right: 5%;
  bottom: 8%;
  opacity: .58;
}

.te-portfolio-cases,
.te-portfolio-guide {
  padding: clamp(64px, 7vw, 92px) 0;
}

.te-portfolio-cases::before,
.te-portfolio-guide::before {
  width: clamp(240px, 26vw, 390px);
  height: clamp(140px, 15vw, 220px);
  left: clamp(-130px, -8vw, -76px);
  top: clamp(56px, 7vw, 84px);
  opacity: .58;
}

.te-portfolio-cases::after,
.te-portfolio-guide::after {
  width: clamp(126px, 13vw, 178px);
  height: clamp(126px, 13vw, 178px);
  left: 8%;
  bottom: clamp(34px, 5vw, 62px);
  opacity: .52;
}

.te-portfolio-cta {
  padding: clamp(70px, 8vw, 108px) 0;
}

.te-portfolio-hero__container,
.te-portfolio-page__container:first-child {
  display: grid;
}

.te-portfolio-hero .te-portfolio-page__container {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.te-portfolio-page__eyebrow {
  color: var(--color-primary);
  font: 700 18px/1.25 Inter-Bold, Inter, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.te-portfolio-hero__title,
.te-portfolio-page__title,
.te-portfolio-cta__title {
  margin: 0;
  font-family: Inter-Bold, Inter, sans-serif;
  line-height: 1.1;
}

.te-portfolio-hero__title {
  margin-top: 16px;
  max-width: 820px;
  font-size: var(--font-sizes-h1);
}

.te-portfolio-page__title,
.te-portfolio-cta__title {
  margin-top: 12px;
  font-size: var(--font-sizes-h2);
}

.te-portfolio-hero__intro,
.te-portfolio-page__intro,
.te-portfolio-cta__text,
.te-portfolio-hero__panel-text {
  color: var(--portfolio-muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.7;
}

.te-portfolio-hero__intro {
  margin-top: 22px;
  max-width: 720px;
  font-size: clamp(17px, 1.45vw, 20px);
}

.te-portfolio-hero__intro p,
.te-portfolio-page__intro p,
.te-portfolio-cta__text p,
.te-portfolio-hero__panel-text p {
  margin: 0;
}

.te-portfolio-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.te-portfolio-hero__panel,
.te-portfolio-guide__card,
.te-portfolio-cta__panel,
.te-portfolio-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.te-portfolio-hero__panel {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(26, 38, 51, .08);
}

.te-portfolio-hero__panel-label,
.te-portfolio-guide__label {
  color: var(--color-primary);
  font: 700 18px/1.25 Inter-Bold, Inter, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.te-portfolio-hero__panel-title {
  margin: 0;
  font-family: Inter-Bold, Inter, sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.18;
}

.te-portfolio-hero__panel-item {
  display: grid;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.te-portfolio-hero__panel-item p {
  display: grid;
  gap: 5px;
  margin: 0;
}

.te-portfolio-hero__panel-item strong {
  font-family: Inter-Bold, Inter, sans-serif;
}

.te-portfolio-hero__panel-item span {
  color: var(--portfolio-muted);
}



.te-portfolio-hero-filters {
  display: none;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.te-portfolio-hero-filter {
  display: grid;
  gap: 8px;
}

.te-portfolio-hero-filter span {
  color: var(--color-primary);
  font: 700 12px/1.2 Inter-Bold, Inter, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.te-portfolio-hero-filter select {
  width: 100%;
  min-height: 44px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-surface);
  color: var(--color-text);
  font: 700 15px/1.25 Inter-Bold, Inter, sans-serif;
}

.te-portfolio-hero-filters__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 2px;
}

.te-portfolio-hero-filters__actions[hidden] {
  display: none;
}

.te-portfolio-hero-filters__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.te-portfolio-hero-filters__apply {
  min-height: 42px;
}

.te-portfolio-hero-filters__count {
  display: inline-grid;
  min-width: 54px;
  height: 54px;
  place-items: center;
  color: var(--portfolio-count-success);
  font: 800 24px/1 Inter-Bold, Inter, sans-serif;
}

.te-portfolio-hero-filters__count[data-state="warning"] {
  color: var(--portfolio-count-warning);
}

.te-portfolio-hero-filters__count.is-zero-pulse {
  animation: tePortfolioZeroPulse .38s ease both;
}

@keyframes tePortfolioZeroPulse {
  0%, 100% { transform: translateX(0) scale(1); }
  20% { transform: translateX(-4px) scale(1.06); }
  40% { transform: translateX(4px) scale(1.06); }
  60% { transform: translateX(-3px) scale(1.08); }
  80% { transform: translateX(3px) scale(1.04); }
}

.te-portfolio-hero-filter select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 42%, transparent);
  outline-offset: 2px;
}

.te-portfolio-hero-filters__reset {
  justify-self: start;
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: 700 14px/1.2 Inter-Bold, Inter, sans-serif;
  cursor: pointer;
}

.te-portfolio-hero-filters__reset[hidden] {
  display: none;
}

.te-portfolio-page__head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.te-portfolio-catalog {
  position: relative;
}

.te-portfolio-catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.te-portfolio-catalog__filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font: 700 14px/1.2 Inter-Bold, Inter, sans-serif;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}

.te-portfolio-catalog__filter span {
  color: var(--portfolio-muted);
  font-size: 12px;
}

.te-portfolio-catalog__filter.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.te-portfolio-catalog__filter.is-active span {
  color: color-mix(in srgb, #fff 82%, transparent);
}

.te-portfolio-catalog__filter:not(.is-active):hover,
.te-portfolio-catalog__filter:not(.is-active):focus-visible {
  border-color: color-mix(in srgb, var(--color-primary) 42%, var(--color-border));
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.te-portfolio-catalog__filter:not(.is-active):hover span,
.te-portfolio-catalog__filter:not(.is-active):focus-visible span {
  color: var(--color-primary);
}

.te-portfolio-catalog.is-refreshing .te-portfolio-catalog__filter,
.te-portfolio-catalog.is-loading-more .te-portfolio-catalog__load {
  pointer-events: none;
}

.te-portfolio-catalog.is-refreshing .te-portfolio-catalog__grid {
  opacity: .45;
}

.te-portfolio-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  transition: opacity .18s ease;
}

.te-portfolio-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 8px;
  min-width: 0;
  animation: tePortfolioCardIn .24s ease both;
}

@keyframes tePortfolioCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.te-portfolio-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
}

.te-portfolio-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.te-portfolio-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--color-primary);
  font: 700 22px/1 Inter-Bold, Inter, sans-serif;
}

.te-portfolio-card__body {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 16px;
  height: 100%;
  padding: 20px;
}

.te-portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.te-portfolio-card__tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 9%, transparent);
  color: var(--color-primary);
  font: 700 12px/1.2 Inter-Bold, Inter, sans-serif;
}

.te-portfolio-card__title {
  margin: 0;
  font-family: Inter-Bold, Inter, sans-serif;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
}

.te-portfolio-card__title a {
  color: inherit;
  text-decoration: none;
}

.te-portfolio-card__summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--portfolio-muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.te-portfolio-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 18px;
  margin: 4px 0 2px;
}

.te-portfolio-card__meta-item {
  min-width: 0;
}

.te-portfolio-card__meta dt {
  color: color-mix(in srgb, var(--color-primary) 88%, var(--portfolio-muted));
  font: 700 13px/1.2 Inter-Bold, Inter, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.te-portfolio-card__meta dd {
  margin: 6px 0 0;
  color: color-mix(in srgb, var(--color-text) 90%, var(--portfolio-muted));
  font: 400 14px/1.42 Inter, Inter-Regular, sans-serif;
  overflow-wrap: anywhere;
}

.te-portfolio-card__link {
  align-self: end;
  justify-self: stretch;
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  padding-inline: 18px;
  font-size: 16px;
}

.te-portfolio-catalog__empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.te-portfolio-catalog__empty span {
  color: var(--portfolio-muted);
}

.te-portfolio-catalog__status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--portfolio-muted);
  font: 700 14px/1.4 Inter-Bold, Inter, sans-serif;
  text-align: center;
}

.te-portfolio-catalog__load {
  display: flex;
  width: fit-content;
  margin: 12px auto 0;
}

.te-portfolio-catalog__load[hidden] {
  display: none;
}

.te-portfolio-catalog__sentinel {
  height: 1px;
}

.te-portfolio-guide__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.te-portfolio-guide__card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 8px;
}

.te-portfolio-guide__title {
  margin: 0;
  font-family: Inter-Bold, Inter, sans-serif;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
}

.te-portfolio-guide__text {
  color: var(--portfolio-muted);
  line-height: 1.65;
}

.te-portfolio-guide__text p {
  margin: 0;
}

.te-portfolio-cta__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 9%, var(--color-bg)), var(--color-surface));
}

.te-portfolio-cta__copy {
  min-width: 0;
}

.te-portfolio-cta__text {
  margin-top: 14px;
}

.te-portfolio-cta__button {
  justify-self: end;
}

html[data-theme="dark"] .te-portfolio-page {
  --portfolio-muted: var(--color-secondary);
}

html[data-theme="dark"] .te-portfolio-page::before {
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
  opacity: .42;
}

html[data-theme="dark"] .te-portfolio-page::after {
  border-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
  box-shadow: 28px 18px 0 -14px color-mix(in srgb, var(--color-primary) 6%, transparent);
  opacity: .38;
}

html[data-theme="dark"] .te-portfolio-hero__panel,
html[data-theme="dark"] .te-portfolio-card,
html[data-theme="dark"] .te-portfolio-guide__card {
  box-shadow: none;
}

@media (max-width: 980px) {
  .te-portfolio-hero .te-portfolio-page__container,
  .te-portfolio-cta__panel {
    grid-template-columns: 1fr;
  }

  .te-portfolio-catalog__grid,
  .te-portfolio-guide__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .te-portfolio-cta__button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .te-portfolio-page__container {
    width: min(100% - 28px, 1180px);
  }

  .te-portfolio-hero {
    padding: 88px 0 48px;
  }

  .te-portfolio-cases,
  .te-portfolio-guide {
    padding: 52px 0;
  }

  .te-portfolio-page::before {
    width: 210px;
    height: 132px;
    opacity: .32;
  }

  .te-portfolio-page::after {
    width: 116px;
    height: 116px;
    opacity: .3;
  }

  .te-portfolio-hero__actions {
    width: 100%;
  }

  .te-portfolio-card__meta {
    grid-template-columns: 1fr;
  }

  .te-portfolio-catalog__grid,
  .te-portfolio-guide__grid {
    grid-template-columns: 1fr;
  }

  .te-portfolio-catalog__filter {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* TextElit button primary hover parity: portfolio */
.te-portfolio-page .te-btn-primary:hover,
.te-portfolio-page .te-btn-primary:focus-visible,
.te-case .te-btn-primary:hover,
.te-case .te-btn-primary:focus-visible {
  border-color: color-mix(in srgb, var(--color-secondary) 42%, var(--color-border)) !important;
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--color-primary) 22%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--color-secondary) 28%, transparent) !important;
}

html[data-theme="dark"] .te-portfolio-page .te-btn-primary:hover,
html[data-theme="dark"] .te-portfolio-page .te-btn-primary:focus-visible,
html[data-theme="dark"] .te-case .te-btn-primary:hover,
html[data-theme="dark"] .te-case .te-btn-primary:focus-visible {
  border-color: color-mix(in srgb, #ffffff 34%, var(--color-secondary)) !important;
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--color-primary) 18%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, .26) !important;
}
