/* ==========================================================================
   Raihan portfolio — overrides on top of the Agntix template
   ========================================================================== */

/* Width/height attributes reserve layout space; keep the aspect ratio when
   max-width shrinks an image on smaller screens. */
.tp-heo-2-img img,
.tp-hero-2-avater img,
.des-portfolio-thumb img,
.des-project-banner img,
.des-brand-item-inner img {
  height: auto;
}

/* Hero floating cards */
.tp-heo-2-img img {
  border-radius: 12px;
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.55);
}

/* Portfolio showcase */
.des-portfolio-thumb img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

/* Category pills stay legible over light artwork */
.des-portfolio-category span {
  background-color: rgba(20, 20, 20, 0.28);
  border-color: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Small phones: two category pills fit, the sector pill would collide */
@media (max-width: 575px) {
  .des-portfolio-category.portfolio-meta {
    display: none;
  }
}

/* Work list hover reveal (300x400 box, 2x artwork) */
.hover-reveal-item .des-team-reveal-img {
  background-size: cover;
  background-position: center;
}

/* --------------------------------------------------------------------------
   Ambient sound toggle
   -------------------------------------------------------------------------- */
.rh-sound {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 99;
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(249, 244, 232, 0.24);
  background: rgba(18, 18, 18, 0.6);
  color: #f9f4e8;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  animation: rh-sound-in 0.6s ease 0.6s forwards;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rh-sound:hover {
  transform: scale(1.06);
  border-color: rgba(249, 244, 232, 0.5);
  background: rgba(18, 18, 18, 0.78);
}
.rh-sound:focus-visible {
  outline: 2px solid #f9f4e8;
  outline-offset: 3px;
}
.rh-sound::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(18, 18, 18, 0.78);
  color: #f9f4e8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rh-sound:hover::after,
.rh-sound:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}
.rh-sound__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.rh-sound__bars i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform: scaleY(0.35);
  transform-origin: 50% 100%;
  opacity: 0.75;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
/* Muted: a still equaliser silhouette */
.rh-sound__bars i:nth-child(2) { transform: scaleY(0.6); }
.rh-sound__bars i:nth-child(3) { transform: scaleY(0.45); }
.rh-sound__bars i:nth-child(4) { transform: scaleY(0.75); }
.rh-sound.is-on .rh-sound__bars i { opacity: 1; }
.rh-sound.is-on .rh-sound__bars i {
  animation: rh-eq 1.1s ease-in-out infinite;
}
.rh-sound.is-on .rh-sound__bars i:nth-child(2) { animation-duration: 0.85s; animation-delay: -0.35s; }
.rh-sound.is-on .rh-sound__bars i:nth-child(3) { animation-duration: 1.3s;  animation-delay: -0.6s; }
.rh-sound.is-on .rh-sound__bars i:nth-child(4) { animation-duration: 0.95s; animation-delay: -0.15s; }

@keyframes rh-eq {
  0%, 100% { transform: scaleY(0.25); }
  50%      { transform: scaleY(1); }
}
@keyframes rh-sound-in {
  to { opacity: 1; }
}
@media (max-width: 767px) {
  .rh-sound { left: 16px; bottom: 16px; width: 48px; height: 48px; }
  .rh-sound::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-sound { animation: none; opacity: 1; }
  .rh-sound.is-on .rh-sound__bars i { animation: none; transform: scaleY(0.7); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.rh-header .tp-header-logo img {
  height: auto;
}

/* ==========================================================================
   Shared page building blocks (work, case studies, about, contact)
   ========================================================================== */
.rh-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8f;
}
.rh-page-hero {
  padding: 210px 0 70px;
}
.rh-page-title,
.rh-case-title {
  margin: 0;
  font-family: var(--tp-ff-mango);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--tp-common-black);
  font-size: clamp(72px, 12vw, 200px);
}
.rh-page-lead {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: #3a3a3f;
}
.rh-lead {
  margin-bottom: 22px;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.55;
  color: var(--tp-common-black);
}
.rh-body {
  font-size: 17px;
  line-height: 1.75;
  color: #4a4a50;
}
.rh-block-title {
  margin: 0 0 30px;
  font-family: var(--tp-ff-mango);
  font-weight: 600;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 0.95;
  color: var(--tp-common-black);
}
.rh-btn-dark.tp-btn-border {
  color: var(--tp-common-black);
  border-color: rgba(20, 20, 20, 0.2);
}
.rh-btn-dark.tp-btn-border:hover {
  color: #fff;
  background-color: var(--tp-common-black);
  border-color: var(--tp-common-black);
}
.rh-text-link {
  font-weight: 500;
  color: var(--tp-common-black);
  border-bottom: 1px solid currentColor;
}
.rh-text-link:hover {
  color: #ff5a1f;
}

/* ==========================================================================
   Homepage tweaks
   ========================================================================== */
.rh-hero-name {
  white-space: nowrap;
  font-size: clamp(64px, 17.5vw, 330px);
}
.rh-discipline-link,
.rh-discipline-link:hover {
  display: block;
  color: inherit;
}

/* ==========================================================================
   Work grid + filters
   ========================================================================== */
.rh-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 50px;
}
.rh-filter a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 11px 20px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tp-common-black);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.rh-filter a sup {
  top: 0;
  font-size: 11px;
  opacity: 0.55;
}
.rh-filter a:hover {
  border-color: var(--tp-common-black);
}
.rh-filter a.is-active {
  color: #fff;
  background-color: var(--tp-common-black);
  border-color: var(--tp-common-black);
}
.rh-card-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #f1f1f3;
}
.rh-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 440 / 500;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rh-card:hover .rh-card-thumb img {
  transform: scale(1.04);
}
.rh-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-common-black);
}
.rh-card .tp-portfolio-inner-content {
  padding-top: 18px;
}
.rh-card .tp-portfolio-inner-title a {
  color: var(--tp-common-black);
}
.rh-card .tp-portfolio-inner-content span {
  color: #6b6b72;
}

/* ==========================================================================
   Case study
   ========================================================================== */
.rh-case-hero {
  padding: 200px 0 60px;
}
.rh-breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 14px;
  color: #8a8a8f;
}
.rh-breadcrumb a {
  color: var(--tp-common-black);
}
.rh-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.rh-case-tags a,
.rh-tag-concept {
  padding: 7px 14px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tp-common-black);
}
.rh-case-tags a:hover {
  color: #fff;
  background: var(--tp-common-black);
}
.rh-tag-concept {
  border-color: #ff5a1f;
  color: #d8430c;
}
.rh-case-summary {
  max-width: 860px;
  margin: 26px 0 50px;
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.45;
  color: #3a3a3f;
}
.rh-case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
}
.rh-case-meta dt {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8f;
}
.rh-case-meta dd {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--tp-common-black);
}
.rh-case-cover {
  padding: 0 15px;
}
.rh-case-cover img {
  display: block;
  width: 100%;
  max-width: 1720px;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
}
.rh-case-overview {
  padding: 110px 0 60px;
}
.rh-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.rh-services li {
  padding: 8px 16px;
  border-radius: 30px;
  background: #f3f3f5;
  font-size: 14px;
  font-weight: 500;
  color: var(--tp-common-black);
}
.rh-case-system {
  padding: 30px 0 40px;
}
.rh-case-system .row {
  padding: 44px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  row-gap: 40px;
}
.rh-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.rh-swatch {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rh-swatch-chip {
  display: block;
  height: 130px;
  margin-bottom: 10px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.rh-swatch strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--tp-common-black);
}
.rh-swatch code {
  font-size: 14px;
  color: #6b6b72;
  background: none;
  padding: 0;
}
.rh-typefaces {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rh-typefaces li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}
.rh-typefaces li:last-child {
  border-bottom: 0;
}
.rh-typeface-sample {
  width: 74px;
  font-family: var(--tp-ff-mango);
  font-size: 64px;
  line-height: 1;
  color: var(--tp-common-black);
}
.rh-typefaces strong {
  display: block;
  font-size: 18px;
  color: var(--tp-common-black);
}
.rh-typefaces span:not(.rh-typeface-sample) {
  font-size: 14px;
  color: #6b6b72;
}
.rh-case-sections {
  padding: 40px 0 40px;
}
.rh-section {
  padding: 70px 0 20px;
}
.rh-section-head {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: baseline;
  column-gap: 20px;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}
.rh-section-index {
  font-size: 15px;
  font-weight: 600;
  color: #ff5a1f;
}
.rh-section-title {
  margin: 0;
  font-family: var(--tp-ff-mango);
  font-weight: 600;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1;
  color: var(--tp-common-black);
}
.rh-section-intro {
  grid-column: 2 / 3;
  margin: 12px 0 0;
  font-size: 16px;
  color: #5a5a60;
}
.rh-section-count {
  grid-column: 3;
  grid-row: 1;
  font-size: 14px;
  color: #8a8a8f;
}
.rh-gallery {
  display: grid;
  gap: 20px;
}
.rh-gallery--slides,
.rh-gallery--mockups,
.rh-gallery--spreads,
.rh-gallery--boards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rh-gallery--posts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.rh-gallery--pages {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}
.rh-gallery--wide {
  grid-template-columns: 1fr;
}
.rh-gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f1f3;
  cursor: zoom-in;
}
.rh-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.rh-gallery-item:hover img {
  transform: scale(1.02);
}
.rh-case-next {
  padding: 90px 0 110px;
}
.rh-case-next-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}
.rh-case-prev,
.rh-case-next-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: 20px;
  background: #f3f3f5;
  color: var(--tp-common-black);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.rh-case-prev {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.rh-case-prev strong,
.rh-case-next-text strong {
  display: block;
  font-family: var(--tp-ff-mango);
  font-weight: 600;
  font-size: clamp(40px, 4.2vw, 72px);
  line-height: 0.95;
}
.rh-case-next-card {
  justify-content: space-between;
  background: var(--tp-common-black);
  color: #fff;
}
.rh-case-next-card .rh-eyebrow {
  color: rgba(255, 255, 255, 0.6);
}
.rh-case-next-card img {
  width: 200px;
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;
}
.rh-case-next-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-weight: 500;
}
.rh-case-prev:hover {
  background: #e9e9ec;
}
.rh-case-next-card:hover {
  background: #26262a;
  color: #fff;
}
.rh-case-back {
  margin-top: 50px;
  text-align: center;
}

/* ==========================================================================
   About + contact
   ========================================================================== */
.rh-about-intro {
  margin-top: 50px;
  row-gap: 40px;
}
.rh-about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}
.rh-about-figure {
  margin: 0;
}
.rh-about-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.rh-about-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: #8a8a8f;
}
.rh-about-block {
  padding: 70px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}
.rh-discipline-list,
.rh-steps,
.rh-chip-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rh-discipline-list a {
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  color: var(--tp-common-black);
}
.rh-discipline-list li:first-child a {
  padding-top: 0;
}
.rh-discipline-name {
  font-family: var(--tp-ff-mango);
  font-weight: 600;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
}
.rh-discipline-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #5a5a60;
}
.rh-discipline-count {
  font-size: 14px;
  white-space: nowrap;
  color: #8a8a8f;
}
.rh-discipline-list a:hover .rh-discipline-name {
  color: #ff5a1f;
}
.rh-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rh-chip-list li {
  padding: 10px 18px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 40px;
  font-size: 16px;
  color: var(--tp-common-black);
}
.rh-steps {
  counter-reset: step;
}
.rh-steps li {
  display: grid;
  grid-template-columns: 60px 220px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  counter-increment: step;
}
.rh-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-weight: 600;
  color: #ff5a1f;
}
.rh-steps strong {
  font-size: 19px;
  color: var(--tp-common-black);
}
.rh-steps span {
  font-size: 16px;
  line-height: 1.6;
  color: #5a5a60;
}
.rh-contact-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding: clamp(32px, 5vw, 70px);
  border-radius: 24px;
  background: #f3f3f5;
}
.rh-contact-phone {
  display: block;
  margin: 8px 0 30px;
  font-family: var(--tp-ff-mango);
  font-weight: 600;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.95;
  color: var(--tp-common-black);
}
.rh-contact-phone:hover {
  color: #ff5a1f;
}
.rh-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.rh-contact-details {
  margin: 0;
}
.rh-contact-details div {
  padding: 20px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}
.rh-contact-details div:first-child {
  padding-top: 0;
}
.rh-contact-details dt {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a8f;
}
.rh-contact-details dd {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--tp-common-black);
}
.rh-contact-details a {
  color: var(--tp-common-black);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .rh-page-hero,
  .rh-case-hero {
    padding-top: 160px;
  }
  .rh-case-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rh-gallery--posts,
  .rh-gallery--pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rh-case-next-row,
  .rh-contact-panel {
    grid-template-columns: 1fr;
  }
  .rh-discipline-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .rh-steps li {
    grid-template-columns: 44px 1fr;
  }
  .rh-steps span {
    grid-column: 2;
  }
}
@media (max-width: 767px) {
  .rh-page-hero,
  .rh-case-hero {
    padding-top: 130px;
    padding-bottom: 40px;
  }
  .rh-gallery--slides,
  .rh-gallery--mockups,
  .rh-gallery--spreads,
  .rh-gallery--boards {
    grid-template-columns: 1fr;
  }
  .rh-gallery {
    gap: 12px;
  }
  .rh-section-head {
    grid-template-columns: 44px 1fr;
  }
  .rh-section-count {
    display: none;
  }
  .rh-case-overview {
    padding-top: 60px;
  }
  .rh-case-next-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .rh-case-next-card img {
    width: 100%;
  }
}

/* Keep footer text clear of the fixed sound and back-to-top buttons */
@media (min-width: 768px) {
  .des-footer-bottom {
    padding-left: 72px;
    padding-right: 72px;
  }
}
@media (max-width: 767px) {
  .des-footer-bottom {
    padding-bottom: 64px;
  }
}

/* ==========================================================================
   Page transitions (rh-transition.js)
   ========================================================================== */
/* Entrance animations start from opacity 0 once the scripts re-run; keep those
   elements hidden while the page wipes in so they do not flash visible first. */
.rh-incoming .tp_fade_anim {
  opacity: 0;
}
/* The incoming page wipes in over the outgoing one, so it must be opaque. */
.rh-incoming {
  background-color: #fff;
}
[data-rh-page]:focus {
  outline: none;
}

/* The floating hero cards are decorative; let clicks reach the buttons beneath them. */
.tp-hero-2-img-wrap {
  pointer-events: none;
}

/* Plain-text value in the side menu contact list (same look as its links) */
.tp-offcanvas-2-right-info-item > .rh-info-text {
  display: block;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--tp-common-black);
}
