/* ==========================================================================
   MUSES — interior pages
   ========================================================================== */

/* ------------------------------ page hero ------------------------------ */

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(640px, calc(100svh - 90px));
  padding: clamp(70px, 9vw, 110px) 0 0;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.page-hero-media {
  position: absolute;
  inset: -3%;
  z-index: -4;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.66) contrast(1.05) brightness(0.48);
  animation: heroDrift 30s ease-in-out infinite alternate;
}

.page-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 70% 70% at 20% 45%, rgba(5, 5, 7, 0.2), rgba(5, 5, 7, 0.82) 72%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.82), rgba(5, 5, 7, 0.25) 40%, var(--bg) 96%),
    linear-gradient(105deg, rgba(108, 77, 255, 0.24), transparent 55%, rgba(255, 61, 139, 0.12));
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000, transparent 80%);
}

.page-hero-inner {
  position: relative;
  width: 100%;
}

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: clamp(34px, 5vw, 64px);
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crumbs a {
  transition: color 0.2s;
}

.crumbs a:hover {
  color: var(--white);
}

.crumbs i {
  color: var(--border);
  font-style: normal;
}

.crumbs span[aria-current] {
  color: rgba(255, 255, 255, 0.66);
}

.page-hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.page-hero-main > div {
  max-width: 980px;
}

.page-title {
  margin-top: 20px;
  font-size: clamp(3rem, 6.6vw, 6.6rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.92;
  text-transform: uppercase;
}

.page-title .grad {
  font-weight: 600;
}

.title-dot {
  color: var(--violet);
}

.page-lede {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(0.98rem, 0.94rem + 0.3vw, 1.13rem);
  font-weight: 300;
  line-height: 1.7;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-number {
  color: transparent;
  font-family: var(--f-display);
  font-size: clamp(7rem, 16vw, 15rem);
  font-weight: 800;
  line-height: 0.7;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  user-select: none;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(40px, 6vw, 70px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-meta > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 180px;
  padding: 15px 30px 15px 0;
  margin-right: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.page-meta > div:last-child {
  border-right: 0;
}

.page-meta strong {
  color: var(--cyan);
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-meta span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------- services index --------------------------- */

.service-index {
  background: var(--bg);
}

.service-rows {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  padding: clamp(38px, 5vw, 66px) 0;
  border-bottom: 1px solid var(--border);
}

.service-row.reverse .service-row-media {
  order: 2;
}

.service-row.reverse .service-row-copy {
  order: 1;
}

.service-row-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.service-row-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 7, 0.55));
  pointer-events: none;
}

.service-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.82);
  transition: transform 0.9s var(--ease-out), filter 0.5s;
}

.service-row-media:hover img {
  transform: scale(1.04);
  filter: saturate(1) brightness(0.92);
}

.service-row-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(5, 5, 7, 0.5);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.service-row-open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(5, 5, 7, 0.45);
  color: var(--white);
  backdrop-filter: blur(10px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.service-row-open .ico {
  width: 17px;
  height: 17px;
}

.service-row-media:hover .service-row-open {
  background: var(--violet);
  border-color: var(--violet);
  transform: rotate(45deg);
}

.service-row-label {
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-row-copy h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.service-row-copy h2 a {
  transition: color 0.2s;
}

.service-row-copy h2 a:hover {
  color: var(--violet-2);
}

.service-row-promise {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.service-row-copy > p:not(.service-row-promise) {
  max-width: 520px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.68;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.service-tags span {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.service-row-copy .text-link {
  margin-top: 22px;
}

/* --------------------------- service detail --------------------------- */

.service-intro {
  background:
    radial-gradient(ellipse 45% 60% at 80% 40%, rgba(108, 77, 255, 0.08), transparent 70%),
    var(--bg);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6.5vw, 88px);
  align-items: center;
}

.framed {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.framed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.86);
}

.framed-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(5, 5, 7, 0.52);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.85;
}

.corner.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.corner.tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

.split-media-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.split-media-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.split-media-foot .ico {
  width: 13px;
  height: 13px;
  color: var(--cyan);
}

.split-copy .section-title {
  margin-top: 20px;
  font-size: clamp(2.1rem, 3.7vw, 3.4rem);
}

.split-lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.split-points {
  margin-top: 26px;
  border-top: 1px solid var(--border);
}

.split-points > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.split-points strong {
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.split-points span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.split-copy .btn {
  margin-top: 26px;
}

.subservices {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.subservice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.subservice {
  position: relative;
  min-height: 205px;
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.subservice:nth-child(4n) {
  border-right: 0;
}

.subservice:nth-child(4n + 1) {
  padding-left: 0;
}

.subservice-num {
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.subservice h3 {
  margin-top: 24px;
  font-family: var(--f-display);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.subservice p {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 0.79rem;
  line-height: 1.55;
}

.subservice-line {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--violet);
  transition: width 0.4s var(--ease-out);
}

.subservice:hover .subservice-line {
  width: 100%;
}

.related-work {
  background: var(--bg);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
}

.related-card:hover {
  border-color: rgba(108, 77, 255, 0.55);
  transform: translateY(-4px);
}

.related-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.84);
  transition: transform 0.7s var(--ease-out);
}

.related-card:hover .related-media img {
  transform: scale(1.04);
}

.related-media span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.5);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 0.67rem;
  backdrop-filter: blur(8px);
}

.related-body {
  padding: 20px 20px 22px;
}

.related-body > span:first-child {
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-body h3 {
  margin-top: 9px;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.related-body .work-cta {
  margin-top: 16px;
  font-size: 0.7rem;
}

.other-services {
  padding-top: 0;
  background: var(--bg);
}

.other-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.other-head p {
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.other-list {
  display: flex;
  flex-direction: column;
}

.other-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  transition: padding-left 0.3s var(--ease), color 0.2s;
}

.other-list a span {
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.other-list a .ico {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--muted-2);
}

.other-list a:hover {
  padding-left: 12px;
  color: var(--violet-2);
}

/* -------------------------------- about -------------------------------- */

.about-story {
  background:
    radial-gradient(ellipse 40% 50% at 85% 30%, rgba(108, 77, 255, 0.08), transparent 70%),
    var(--bg);
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.about-story-copy .section-title {
  margin-top: 18px;
  margin-bottom: 26px;
  font-size: clamp(2.1rem, 3.7vw, 3.4rem);
}

.about-story-copy p {
  max-width: 620px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.78;
}

.about-quote {
  position: sticky;
  top: 120px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 100% 0, rgba(255, 61, 139, 0.1), transparent 55%),
    var(--surface);
}

.about-quote .quote-mark {
  color: var(--pink);
}

.about-quote > p {
  margin-top: 4px;
  font-family: var(--f-display);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.about-quote-body {
  display: block;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 0.84rem;
  line-height: 1.65;
}

.about-quote-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.about-quote-meta i {
  width: 16px;
  height: 1px;
  background: var(--border);
}

.impact-about {
  border-top: 1px solid var(--border);
}

.reach {
  background: var(--bg);
}

.reach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.reach-copy .section-title {
  margin-top: 18px;
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
}

.reach-copy > p {
  max-width: 460px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.reach-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}

.reach-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}

.reach-dot {
  width: 5px;
  height: 5px;
  margin-bottom: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.reach-item strong {
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 500;
}

.reach-item > span:last-child {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.reach-map {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.reach-map-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.reach-svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-labels {
  letter-spacing: 0.14em;
}

.reach-map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.72rem;
}

.reach-map-foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  transition: color 0.2s;
}

.reach-map-foot a:hover {
  color: var(--white);
}

.reach-map-foot .ico {
  width: 13px;
  height: 13px;
}

.about-values {
  background: var(--bg);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.value-card {
  padding: 28px 40px 30px 0;
  border-bottom: 1px solid var(--border);
}

.value-card:nth-child(odd) {
  padding-right: 44px;
  border-right: 1px solid var(--border);
}

.value-card:nth-child(even) {
  padding-left: 44px;
}

.value-card > span {
  color: var(--violet-2);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.value-card h3 {
  margin-top: 16px;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.value-card p {
  max-width: 430px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.industries {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.industries-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.industries-inner .section-title {
  margin-top: 18px;
  font-size: clamp(2.2rem, 3.7vw, 3.4rem);
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.industry-tags span {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--f-display);
  font-size: 0.82rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.industry-tags span:hover {
  color: var(--white);
  border-color: var(--violet);
  background: var(--violet-soft);
}

/* ------------------------------ portfolio ------------------------------ */

.portfolio {
  background: var(--bg);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.filter-label {
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-btn span {
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 8px;
}

.filter-btn:hover {
  color: var(--white);
  border-color: rgba(108, 77, 255, 0.5);
}

.filter-btn.is-active {
  color: var(--white);
  border-color: var(--violet);
  background: var(--violet);
}

.filter-btn.is-active span {
  color: rgba(255, 255, 255, 0.7);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
}

.case-tile:hover {
  border-color: rgba(108, 77, 255, 0.55);
  transform: translateY(-4px);
}

.case-tile.is-hidden,
.case-detail.is-hidden {
  display: none;
}

.case-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.84);
  transition: transform 0.7s var(--ease-out), filter 0.4s;
}

.case-tile:hover .case-media img {
  transform: scale(1.04);
  filter: saturate(1) brightness(0.94);
}

.case-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(5, 5, 7, 0.5);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--f-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.case-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(5, 5, 7, 0.45);
  color: var(--white);
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.25s;
}

.case-open .ico {
  width: 15px;
  height: 15px;
}

.case-tile:hover .case-open {
  background: var(--violet);
  transform: rotate(45deg);
}

.case-body {
  padding: 18px 20px 20px;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-meta i {
  width: 10px;
  height: 1px;
  background: var(--border);
}

.case-body h3 {
  margin-top: 10px;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.case-facts span {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.case-facts strong {
  color: var(--cyan);
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 500;
}

.filter-empty {
  padding: 40px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.filter-empty button {
  color: var(--violet-2);
  text-decoration: underline;
}

.case-details {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.case-detail {
  padding: clamp(40px, 6vw, 70px) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 110px;
}

.case-detail:first-of-type {
  border-top: 0;
}

.case-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.case-detail-head > div:first-child {
  max-width: 760px;
}

.case-detail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-detail-label i {
  width: 12px;
  height: 1px;
  background: var(--border);
}

.case-detail-head h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.case-detail-meta span {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-detail-media {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10px;
}

.case-detail-media figure {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}

.case-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
}

.case-detail-media figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--f-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-detail-body {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 28px;
}

.case-facts-large {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.case-facts-large > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.case-facts-large strong {
  display: block;
  color: var(--cyan);
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.case-facts-large span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.case-narrative > div {
  padding: 0 0 16px;
}

.case-narrative > div + div {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.case-narrative span {
  color: var(--violet-2);
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-narrative p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.case-scope {
  padding-left: 22px;
  border-left: 1px solid var(--border);
}

.case-scope ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.case-scope li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.case-scope li .ico {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  color: var(--cyan);
}

.case-scope .text-link {
  margin-top: 20px;
  font-size: 0.75rem;
}

/* ------------------------------- contact ------------------------------- */

.contact-section {
  background:
    radial-gradient(ellipse 40% 55% at 80% 40%, rgba(108, 77, 255, 0.08), transparent 70%),
    var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 4vw, 50px);
  align-items: start;
}

.contact-form-panel {
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 55%),
    var(--surface);
}

.form-head h2 {
  margin-top: 16px;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.form-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-form {
  margin-top: 30px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
}

.field label span {
  color: var(--pink);
}

.field label .optional {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #09090e;
  color: var(--white);
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #565662;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(108, 77, 255, 0.12);
  background: #0b0b11;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  appearance: none;
  cursor: pointer;
}

.select-wrap {
  position: relative;
}

.select-wrap .ico {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 14px;
  height: 14px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--pink);
}

.field-error {
  min-height: 12px;
  color: var(--pink);
  font-size: 0.7rem;
  line-height: 1.3;
}

.field-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--violet);
  flex: none;
}

.privacy-link {
  display: inline;
  padding: 0;
  color: var(--violet-2);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit {
  margin-top: 20px;
}

.form-submit .ico {
  order: -1;
}

.form-privacy {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.5;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  color: #9defff;
}

.form-status.is-error {
  border: 1px solid rgba(255, 61, 139, 0.35);
  background: rgba(255, 61, 139, 0.08);
  color: #ffb3cd;
}

.form-status a {
  color: inherit;
  text-decoration: underline;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.contact-card-dark {
  background:
    radial-gradient(ellipse at 100% 0, rgba(108, 77, 255, 0.2), transparent 60%),
    var(--surface-2);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact-line:first-of-type {
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.contact-line-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cyan);
  flex: none;
}

.contact-line-icon .ico {
  width: 16px;
  height: 16px;
}

.contact-line > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-line small {
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-line strong {
  margin-top: 1px;
  color: var(--white);
  font-family: var(--f-display);
  font-size: 0.83rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.contact-line > .ico {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--muted-2);
  transition: transform 0.2s, color 0.2s;
}

.contact-line:hover > .ico {
  color: var(--white);
  transform: translate(2px, -2px);
}

.contact-address {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.contact-card .text-link {
  margin-top: 14px;
  font-size: 0.74rem;
}

.office-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.72rem;
}

.office-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.office-meta .ico {
  width: 13px;
  height: 13px;
  color: var(--cyan);
}

.contact-response {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.contact-response .status-dot {
  margin-top: 5px;
}

.contact-response strong {
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 500;
}

.contact-response p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.5;
}

.contact-map {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 77, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 77, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000, transparent 75%);
}

.map-pin {
  position: absolute;
  top: 34px;
  left: 34px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(108, 77, 255, 0.16), 0 0 30px rgba(108, 77, 255, 0.5);
}

.map-pin .ico {
  width: 18px;
  height: 18px;
}

.map-lines {
  position: absolute;
  top: 54px;
  left: 72px;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, rgba(108, 77, 255, 0.5), transparent);
  transform: rotate(-18deg);
  transform-origin: left center;
}

.contact-map > span {
  color: var(--muted-2);
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.contact-map > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-family: var(--f-display);
  font-size: 0.84rem;
}

.contact-map > a .ico {
  width: 13px;
  height: 13px;
  color: var(--cyan);
}

/* --------------------------------- faq --------------------------------- */

.faq {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 7vw, 100px);
}

.faq-intro .section-title {
  margin-top: 18px;
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
}

.faq-intro p {
  max-width: 340px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .ico {
  width: 16px;
  height: 16px;
  color: var(--violet-2);
  transition: transform 0.25s;
  flex: none;
}

.faq-item[open] summary .ico {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 20px;
  max-width: 620px;
}

.faq-answer p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.privacy-panel {
  max-width: 620px;
}

.privacy-body {
  padding: 26px;
}

.privacy-body p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.privacy-body p:last-child {
  margin-bottom: 0;
}

.privacy-body a {
  color: var(--violet-2);
  text-decoration: underline;
}

/* --------------------------------- 404 --------------------------------- */

.not-found {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 110px);
  padding: 90px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(108, 77, 255, 0.16), transparent 70%),
    var(--bg);
}

.not-found-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 78%);
}

.not-found-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.not-found h1 {
  margin-top: 24px;
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  font-weight: 200;
  letter-spacing: -0.06em;
  line-height: 0.88;
  text-transform: uppercase;
}

.not-found p {
  max-width: 440px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
