/* =====================================================
   CLASICOH KARLS — WORK PAGE
===================================================== */

.work-page-body { background: #040315; }

.work-container {
  width: min(1220px, calc(100% - (var(--page-padding) * 2)));
  margin: 0 auto;
}

.work-intro {
  position: relative;
  padding: 88px 0 44px;
  overflow: hidden;
  border-bottom: 1px solid rgba(253, 249, 250, .08);
  background:
    radial-gradient(circle at 82% 12%, rgba(216, 255, 97, .09), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 72%);
}

.work-intro::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -190px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(216,255,97,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(216,255,97,.022), 0 0 0 116px rgba(216,255,97,.012);
  pointer-events: none;
}

.work-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: #E4FD00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.work-eyebrow::before {
  content: "";
  display: none;
  width: 22px;
  height: 2px;
  margin: 0 10px 3px 0;
  background: #d8ff61;
}

.work-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 68px;
  align-items: end;
}

.work-heading h1 {
  margin: 0;
  color: #fdf9fa;
  font-size: clamp(64px, 8.3vw, 124px);
  font-weight: 850;
  line-height: .88;
  letter-spacing: -.065em;
}

.work-heading p {
  max-width: 470px;
  margin: 0 0 6px;
  color: rgba(253,249,250,.62);
  font-size: 16px;
  line-height: 1.75;
}

.work-filters {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 54px;
}

.work-filter {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(253,249,250,.13);
  border-radius: 12px;
  background: rgba(253,249,250,.035);
  color: rgba(253,249,250,.68);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.work-filter:hover,
.work-filter:focus-visible {
  color: #fdf9fa;
  border-color: rgba(216,255,97,.5);
  transform: translateY(-2px);
  outline: none;
}

.work-filter.is-active {
  border-color: #E4FD00;
  background: #E4FD00;
  color: #040315;
}

.work-count {
  position: relative;
  z-index: 1;
  margin: 17px 0 0;
  color: rgba(253,249,250,.42);
  font-size: 12px;
}

.work-count strong { color: #E4FD00; }

.work-list { padding: 54px 0 108px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  min-width: 0;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(253,249,250,.10);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216,255,97,.055), transparent 34%),
    rgba(253,249,250,.027);
  box-shadow: 0 20px 70px rgba(0,0,0,.12);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216,255,97,.34);
  box-shadow: 0 24px 80px rgba(0,0,0,.26);
}

.project-card.is-featured {
  border-color: rgba(216,255,97,.25);
  background:
    radial-gradient(circle at 100% 0%, rgba(216,255,97,.11), transparent 38%),
    linear-gradient(145deg, rgba(216,255,97,.038), rgba(253,249,250,.025));
}

.project-card[hidden] { display: none !important; }
.project-card.project-enter { animation: projectEnter .4s ease both; }

.project-top {
  min-height: 62px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(253,249,250,.08);
}

.project-category {
  color: #E4FD00;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-status {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(253,249,250,.11);
  border-radius: 999px;
  color: rgba(253,249,250,.55);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.project-status.is-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(216,255,97,.3);
  color: #E4FD00;
}

.project-status.is-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8ff61;
  box-shadow: 0 0 10px rgba(216,255,97,.85);
}

.project-body {
  flex: 1;
  padding: 28px 26px 25px;
  display: flex;
  flex-direction: column;
}

.project-number {
  display: block;
  margin-bottom: 14px;
  color: #E4FD00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.project-body h2 {
  margin: 0;
  color: #fdf9fa;
  font-size: clamp(27px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.project-body > p {
  margin: 24px 0 25px;
  color: rgba(253,249,250,.58);
  font-size: 13.5px;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.project-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(253,249,250,.09);
  border-radius: 999px;
  background: rgba(253,249,250,.025);
  color: rgba(253,249,250,.56);
  font-size: 10px;
  font-weight: 650;
}

.project-bottom {
  min-height: 66px;
  padding: 14px 18px 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  border-top: 1px solid rgba(253,249,250,.08);
  color: rgba(253,249,250,.38);
  font-size: 10px;
  font-weight: 650;
}

.project-link {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(216,255,97,.46);
  border-radius: 10px;
  color: #E4FD00;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.project-link:hover,
.project-link:focus-visible {
  background: #d8ff61;
  color: #040315;
  transform: translateY(-2px);
  outline: none;
}

.project-label {
  color: #E4FD00;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.work-success {
  padding: 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  background: #F3F6E8;
}

.work-success > .work-container {
  width: 100%;
  max-width: none;
}

.work-success-card {
  position: relative;
  min-height: 330px;
  padding: 86px max(32px, var(--page-padding)) 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #F3F6E8;
  box-shadow: none;
  text-align: center;
}

.work-success-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 34px;
  background: rgba(4,3,21,.38);
}

.work-success-light {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #fdf9fa;
  box-shadow: 0 0 12px rgba(255,255,255,1), 0 0 45px rgba(255,255,255,.92);
  transform: translateX(-50%);
}

.work-success-card h2 {
  position: relative;
  margin: 0;
  color: #040315;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.work-success-card p {
  position: relative;
  margin: 14px 0 27px;
  color: rgba(4,3,21,.68);
  font-size: 15px;
}

.work-success-card a {
  position: relative;
  min-width: 176px;
  min-height: 50px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #040315;
  border-radius: 12px;
  background: #040315;
  color: #fdf9fa;
  font-size: 13px;
  font-weight: 850;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.work-success-card a:hover,
.work-success-card a:focus-visible,
.work-success-card a:active {
  border-color: #E4FD00;
  background: #E4FD00;
  color: #040315;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(4,3,21,.2);
  outline: none;
}

/* The Work page uses its own single CTA above the shared footer. */
.work-page-body .site-footer .footer-cta { display: none; }

@keyframes projectEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-heading { gap: 42px; }
}

@media (max-width: 760px) {
  .work-intro { padding: 64px 0 35px; }
  .work-heading { grid-template-columns: 1fr; gap: 27px; }
  .work-heading h1 { font-size: clamp(58px, 17vw, 88px); }
  .work-heading p { max-width: 600px; margin: 0; }
  .work-filters {
    margin-top: 38px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 9px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .work-filter { flex: 0 0 auto; }
  .work-list { padding: 38px 0 76px; }
  .work-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 405px; }
  .work-success-card { min-height: 290px; padding: 78px 24px 46px; }
}

@media (max-width: 480px) {
  .work-container { width: calc(100% - 36px); }
  .work-intro { padding-top: 50px; }
  .work-heading h1 { font-size: 56px; }
  .work-heading p { font-size: 14px; }
  .project-top { align-items: flex-start; }
  .project-category { max-width: 58%; line-height: 1.45; }
  .project-body { padding: 24px 21px; }
  .project-body h2 { font-size: 29px; }
  .project-bottom { padding: 14px 15px 14px 21px; align-items: flex-start; flex-direction: column; }
  .project-link { width: 100%; }
  .work-success-card { min-height: 270px; padding: 72px 20px 40px; }
  .work-success-card h2 { font-size: 27px; }
  .work-success-card p { max-width: 280px; font-size: 13px; line-height: 1.55; }
  .work-success-card a { width: min(100%, 190px); }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .work-filter,
  .project-link,
  .work-success-card a {
    animation: none !important;
    transition: none !important;
  }
}

