/* ===== Theme variables: change these to match your site ===== */
:root {
  --accent: #f26a21;
  /* main brand colour */
  --dark: #0f1a24;
  /* overlay / heading colour */
  --text: #ffffff;
  --body-font: 'Barlow', sans-serif;
  --head-font: 'Barlow Condensed', 'Barlow', sans-serif;
}

.animate-item.in-view::marker {
  content: "";
}

.animate-item.in-view {
  list-style: none;
}

/* ===== Section title ===== */
.sec-title {
  margin-bottom: 40px
}

.sec-title.center {
  text-align: center
}

.sec-title__tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px
}

.sec-title__tagline .text h4 {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.sec-title__tagline .left-line,
.sec-title__tagline .right-line {
  width: 40px;
  height: 2px;
  background: var(--accent);
  position: relative
}

.sec-title__tagline .left-line::after,
.sec-title__tagline .right-line::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.sec-title__tagline .left-line::after {
  right: -3px
}

.sec-title__tagline .right-line::after {
  left: -3px
}

.sec-title__title {
  font-family: var(--head-font);
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--dark);
}

/* ===== Portfolio grid ===== */
.portfolio-one {
  background: #fff
}

.portfolio-one__inner {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.portfolio-one__single-box {
  display: flex;
  gap: 20px
}

.portfolio-one__single-box>li {
  flex: 1 1 0;
  min-width: 0;
  transition: flex .6s cubic-bezier(.2, .7, .2, 1);
}

/* hovered card grows, siblings shrink */
.portfolio-one__single-box:hover>li {
  flex: .8 1 0
}

.portfolio-one__single-box>li:hover {
  flex: 1.5 1 0
}

.portfolio-one__single-inner {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--dark);
}

.portfolio-one__single__bg {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: transform .8s ease;
}

.portfolio-one__single-inner:hover .portfolio-one__single__bg {
  transform: scale(1.12)
}

/* dark overlay that turns brand-colour on hover */
.portfolio-one__single-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(15, 26, 36, .92) 0%, rgba(15, 26, 36, .35) 55%, rgba(15, 26, 36, 0) 100%);
  transition: opacity .5s ease;
}

.portfolio-one__single-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--accent), rgba(242, 106, 33, .55) 60%, transparent);
  opacity: .9;
  transition: height .6s ease;
}

.portfolio-one__single-inner:hover::after {
  height: 100%
}

/* content block */
.portfolio-one__single-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(0);
  transition: transform .5s ease;
}

.portfolio-one__single-content .text-box p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(14px);
  transition: max-height .5s ease, opacity .5s ease, transform .5s ease;
}

.portfolio-one__single-inner:hover .text-box p {
  max-height: 90px;
  opacity: 1;
  transform: translateY(0)
}

.portfolio-one__single-content .text-box h3 {
  font-family: var(--head-font);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

.portfolio-one__single-content .text-box h3 a {
  color: #ffffff;
}

.portfolio-one__single-content .text-box h3 a:hover {
  text-decoration: underline
}

/* arrow button */
.portfolio-one__single-content .btn-box a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  transform: scale(.6) rotate(-45deg);
  opacity: 0;
  transition: transform .5s ease, opacity .4s ease, background .3s ease, color .3s ease;
}

.portfolio-one__single-inner:hover .btn-box a {
  transform: scale(1) rotate(0);
  opacity: 1;
  background: #fff;
  color: var(--accent)
}

.icon-right-arrow {
  display: block;
  width: 20px;
  height: 20px;
  position: relative
}

.icon-right-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

.icon-right-arrow::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ===== Scroll-in animation ===== */
.animate-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease
}

.animate-item.in-view {
  opacity: 1;
  transform: none
}

.portfolio-one__single-box>li:nth-child(2) {
  transition-delay: .1s
}

.portfolio-one__single-box>li:nth-child(3) {
  transition-delay: .2s
}

.portfolio-one__single-box>li:nth-child(4) {
  transition-delay: .3s
}

/* ===== Responsive ===== */
@media (max-width:991px) {
  .portfolio-one__single-box {
    flex-wrap: wrap
  }

  .portfolio-one__single-box>li,
  .portfolio-one__single-box:hover>li,
  .portfolio-one__single-box>li:hover {
    flex: 0 0 calc(50% - 10px)
  }

  .sec-title__title {
    font-size: 38px
  }
}

@media (max-width:575px) {

  .portfolio-one__single-box>li,
  .portfolio-one__single-box:hover>li,
  .portfolio-one__single-box>li:hover {
    flex: 0 0 100%
  }

  .portfolio-one__single-inner {
    height: 340px
  }

  .sec-title__title {
    font-size: 32px
  }

  /* no hover on touch: always show text */
  .portfolio-one__single-content .text-box p {
    max-height: 90px;
    opacity: 1;
    transform: none
  }

  .portfolio-one__single-content .btn-box a {
    opacity: 1;
    transform: none;
    width: 40px;
    height: 40px;
  }

  .icon-right-arrow {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important
  }

  .animate-item {
    opacity: 1;
    transform: none
  }
}

:root {
  --jf-steel: #071827;
  --jf-plate: #071827;
  --jf-edge: #2a323c;
  --jf-spark: #ff7a1a;
  --jf-ice: #eef2f6;
  --jf-mute: #9aa6b3;
}

.jf-wrap {
  padding-bottom: 50px;
  background-color: #ffffff;
}

.jf-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: center;
    background: radial-gradient(600px 300px at 15% 0%, rgba(255, 122, 26, .12), transparent 70%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 14px), #071827;
    padding: 40px;
    border-radius: 5px;
}

/* ---- Photo: offset frame + angled corner ---- */
.jf-photo {
  position: relative;
  padding: 0 18px 18px 0
}

.jf-photo::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border: 2px solid var(--jf-spark);
  border-radius: 4px;
  transition: transform .45s ease;
}

.jf-photo__frame {
  position: relative;
  overflow: hidden;
  background: #efe9df;
  aspect-ratio: 4/5;
  /* clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%) */
}

.jf-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.35);
  transition: transform .7s ease, filter .5s ease
}

.jf-photo:hover::before {
  transform: translate(8px, 8px)
}

.jf-photo:hover img {
  transform: scale(1.06);
  filter: grayscale(0)
}

.jf-photo__badge {
  position: absolute;
  left: -14px;
  bottom: 42px;
  z-index: 2;
  background: var(--jf-spark);
  color: #1a0d00;
  padding: 10px 16px;
  font: 700 1.5rem/1 "Barlow Condensed", sans-serif;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  animation: jf-spark 3.2s ease-in-out infinite
}

.jf-photo__badge small {
  display: block;
  font: 600 .68rem/1.2 "Barlow", sans-serif;
  margin-top: 3px
}

/* ---- Intro ---- */
.jf-role {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--jf-spark);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px
}

.jf-role svg {
  width: 20px;
  height: 20px
}

.jf-name {
 font-size: clamp(26px, 3.0vw, 40px);
 font-weight: 700;
  color: var(--jf-ice);
  margin-bottom: 16px;
  letter-spacing: .01em
}

.jf-bio {
  line-height: 1.7;
  margin-bottom: 26px;
  font-size: 16px
}

.jf-bio strong {
    color: #becbd8;
    font-weight: 500;
    font-size: 15px;
}

/* ---- Credentials ---- */
.jf-creds {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 26px
}

.jf-cred {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px 14px 16px;
  background: var(--jf-plate);
  border: 1px solid var(--jf-edge);
  border-radius: 6px;
  color: var(--jf-ice);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease
}

.jf-cred::before {
  /* weld-line accent */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--jf-spark);
  transform: scaleY(.3);
  transform-origin: top;
  transition: transform .35s ease
}

.jf-cred svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--jf-spark);
  transition: transform .35s ease
}

.jf-cred:hover {
  transform: translateY(-4px);
  border-color: var(--jf-spark);
  background: #222a33
}

.jf-cred:hover::before {
  transform: scaleY(1)
}

.jf-cred:hover svg {
  transform: rotate(-12deg) scale(1.15)
}

/* ---- Contact ---- */
.jf-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px
}

.jf-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--jf-ice);
  padding: 12px 18px;
  border: 1px solid var(--jf-edge);
  border-radius: 999px;
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color .35s ease, border-color .35s ease
}

.jf-btn::before {
  /* fill sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--jf-spark);
  z-index: -1;
  transform: translateX(-101%);
  transition: transform .4s ease
}

.jf-btn:hover {
  color: #1a0d00;
  border-color: var(--jf-spark)
}

.jf-btn:hover::before {
  transform: none
}

.jf-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--jf-spark);
  transition: color .35s ease
}

.jf-btn:hover svg {
  color: #1a0d00
}

.jf-btn__label {
  display: block;
  font-size: .7rem;
  opacity: .75
}

.jf-btn__value {
  display: block;
  font-weight: 600;
  font-size: .92rem
}

/* ---- One orchestrated entrance ---- */
.jf-photo,
.jf-intro {
  animation: jf-in .9s cubic-bezier(.2, .7, .2, 1) both
}

.jf-intro {
  animation-delay: .15s
}

@keyframes jf-in {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes jf-spark {

  0%,
  100% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .4)
  }

  50% {
    box-shadow: 0 8px 28px rgba(255, 122, 26, .55)
  }
}

:focus-visible {
  outline: 2px solid var(--jf-spark);
  outline-offset: 3px
}

@media (max-width:960px) {
  .jf-grid {
    grid-template-columns: 1fr;
    gap: 36px
  }

  .jf-photo {
    max-width: 340px;
    margin: 0 auto;
    width: 100%
  }

  .jf-creds {
    grid-template-columns: 1fr
  }

  .jf-name {
    font-size: 2.4rem
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}

.padding-top {
  padding-top: 50px;
}