/* —— Tokens —— */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #c8c8c8;
  --soft: #6b6b6b;
  --line: #e8e8e8;
  --green: #00c853;
  --green-deep: #00a844;
  --red: #e10600;
  --blue: #0056d2;
  --sand: #1a1a1a;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* —— Nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1.1rem 0;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang__btn {
  min-width: 2.1rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang__btn.is-active {
  background: var(--ink);
  color: var(--bg);
}

.nav__links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  transition: color 0.25s var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav__cta:hover {
  background: var(--ink);
  color: var(--bg);
}

.nav__menu {
  width: 2rem;
  height: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav__menu span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__menu[aria-expanded="true"] span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.nav__menu[aria-expanded="true"] span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: var(--pad);
  background: var(--bg);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.04em;
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }

  .nav__menu {
    display: none;
  }
}

/* —— Hero —— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5.5rem, 12vh, 8rem) var(--pad) 4.5rem;
  min-height: calc(100svh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__stage {
  position: relative;
  min-height: clamp(18rem, 52vw, 30rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__names {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.6rem, 16vw, 11rem);
  line-height: 0.84;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.hero__name {
  display: block;
  width: 100%;
}

.hero__name--first {
  text-align: left;
  color: var(--ink);
}

.hero__name--last {
  margin-top: clamp(4rem, 14vw, 9rem);
  text-align: right;
  color: var(--green);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) 0.12s forwards;
}

.reveal-delay {
  animation-delay: 0.32s;
}

.reveal-delay-2 {
  animation-delay: 0.48s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__float {
  position: absolute;
  z-index: 3;
  animation: float 5.5s ease-in-out infinite;
}

.hero__float--1 {
  top: 2%;
  right: 14%;
  animation-delay: 0s;
}

.hero__float--2 {
  top: 42%;
  left: 46%;
  animation-delay: 1.1s;
}

.hero__float--3 {
  bottom: 8%;
  left: 8%;
  animation-delay: 0.55s;
}

.hero__float--4 {
  top: 12%;
  left: 28%;
  animation-delay: 1.8s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.float-card {
  width: clamp(4.75rem, 9.5vw, 7.75rem);
  height: clamp(4.75rem, 9.5vw, 7.75rem);
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.float-card img {
  width: 48%;
  height: 48%;
  object-fit: contain;
  display: block;
}

.float-card--vistro {
  border: 1px solid var(--line);
}

.float-card--boltcv {
  background: #f2f2f2;
  padding: 0.65rem;
}

.float-card--boltcv img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.float-card--avatar {
  border-radius: 999px;
  border: 3px solid #fff;
  background: #111;
}

.float-card--avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-card--fether {
  background: #1e5fe0;
  padding: 0;
}

.float-card--fether img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__lead {
  margin: clamp(2.25rem, 5vw, 3.75rem) 0 0;
  max-width: min(38rem, 100%);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--muted);
}

.hero__lead .accent {
  color: var(--green);
}

@media (max-width: 719px) {
  .hero__float--2,
  .hero__float--4 {
    display: none;
  }

  .hero__float--1 {
    right: 4%;
    top: 2%;
  }

  .hero__float--3 {
    left: auto;
    right: 10%;
    bottom: 8%;
  }

  .hero__name--last {
    margin-top: clamp(2.5rem, 18vw, 5rem);
  }
}

/* —— Expertise —— */
.expertise {
  padding: 5rem var(--pad) 6rem;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.expertise__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.expertise__item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: default;
  color: var(--muted);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.expertise__item.is-active,
.expertise__item:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.expertise__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 1.05;
}

.expertise__icon {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  color: var(--green);
}

.expertise__item.is-active .expertise__icon,
.expertise__item:hover .expertise__icon {
  opacity: 1;
  transform: translateX(0);
}

.expertise__desc {
  margin-top: 1.75rem;
  color: var(--soft);
  font-size: 0.98rem;
  min-height: 1.5em;
  transition: opacity 0.25s;
}

/* —— Work —— */
.work {
  padding: 2rem var(--pad) 6rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.04em;
}

.section-head p {
  color: var(--soft);
  font-size: 0.95rem;
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 1.25rem;
}

@media (min-width: 720px) {
  .work__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.work__item {
  display: block;
}

.work__visual {
  aspect-ratio: 1 / 1;
  border-radius: 0.35rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.45s var(--ease);
}

.work__item:hover .work__visual {
  transform: scale(0.985);
}

.work__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work__bg--cover {
  object-position: center top;
  filter: brightness(0.55);
}

.work__mark {
  position: relative;
  z-index: 2;
  width: clamp(2.5rem, 6vw, 3.75rem);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

.work__mark--light {
  filter: none;
  width: clamp(3.5rem, 8vw, 5rem);
  border-radius: 1rem;
}

.work__mark--invert {
  filter: brightness(0) invert(1);
  margin-bottom: 0.75rem;
}

.work__avatar {
  display: none;
}

.work__visual--agent {
  background: var(--red);
}

.work__visual--agent .work__logo {
  color: #fff;
  text-shadow: none;
}

.work__visual--pixel {
  background: #0a0a0a;
}

.work__mark--pixel {
  position: relative;
  z-index: 2;
  width: min(72%, 16rem) !important;
  height: auto !important;
  filter: none;
}

.work__visual--gitfora {
  background: #0a1f5c;
}

.work__visual--gitfora .work__logo {
  text-shadow: none;
}

.work__logo {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.05em;
  color: #fff;
  text-align: center;
  line-height: 1.05;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.work__logo--sm {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.work__logo--dark {
  color: var(--ink);
  text-shadow: none;
}

.work__visual--vistro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.work__visual--vistro .work__mark {
  filter: none;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.55rem;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.work__visual--boltcv {
  background: #0a0a0a;
}

.work__visual--boltcv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.work__visual--boltcv .work__bg {
  filter: none;
  object-position: center center;
}

.work__visual--boltcv .work__mark {
  filter: none;
  border-radius: 1rem;
  width: clamp(3.25rem, 7vw, 4.5rem);
  height: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.work__visual--more {
  background: #f3f3f3;
  border: 1px solid var(--line);
  flex-direction: column;
  gap: 0.85rem;
}

.work__visual--more .work__mark {
  position: static;
  filter: none;
  opacity: 0.85;
}

.work__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--soft);
}

.work__meta span:first-child {
  color: var(--ink);
  font-weight: 600;
}

/* —— About —— */
.about {
  padding: 4rem var(--pad) 6rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.about__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .about__grid {
    grid-template-columns: 0.4fr 1fr;
    gap: 3rem;
  }
}

.about h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.05em;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--sand);
}

.about__now {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.about__now h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 0.85rem;
}

.about__now ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.about__now li {
  position: relative;
  padding-left: 1rem;
  color: var(--soft);
  font-size: 0.95rem;
}

.about__now li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--green);
}

.about__cv {
  align-self: flex-start;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--green);
  padding-bottom: 0.15rem;
  transition: color 0.25s;
}

.about__cv:hover {
  color: var(--green-deep);
}

/* —— Footer —— */
.footer {
  background: var(--green);
  color: var(--ink);
  padding: 4rem 0 1.5rem;
  margin-top: 2rem;
  overflow: hidden;
}

.footer__top {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 700px) {
  .footer__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.footer__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  max-width: 16ch;
  text-transform: uppercase;
}

.footer__cta {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease);
}

.footer__cta:hover {
  transform: translateY(-2px);
}

.footer__cols {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

@media (min-width: 700px) {
  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  opacity: 0.65;
}

.footer__cols a,
.footer__cols span:not(.footer__label) {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer__socials {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__socials img {
  width: 1rem;
  height: 1rem;
  opacity: 0.9;
}

.footer__cols a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__banner {
  width: 100%;
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 0 var(--pad);
  box-sizing: border-box;
}

.footer__name {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 9.2vw, 12.5rem);
  letter-spacing: -0.075em;
  text-transform: uppercase;
  line-height: 0.78;
  text-align: left;
  white-space: nowrap;
}

.section-head__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--soft);
  border-bottom: 1.5px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.section-head__link:hover {
  color: var(--ink);
  border-color: var(--green);
}

.nav__links a.is-current {
  color: var(--ink);
}

/* —— Works page —— */
.works-hero--detail {
  padding-bottom: 1.5rem;
}

.works-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--soft);
  transition: color 0.25s;
}

.works-back:hover {
  color: var(--ink);
}

.works-list {
  padding-top: 0;
}

.case--single {
  margin-bottom: 0;
}

.case__details {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case__fact {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.case__fact span {
  color: var(--soft);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

.case__fact strong {
  font-weight: 500;
  color: var(--ink);
}

.case__logo--pixel {
  width: min(70%, 16rem);
  height: auto;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.case__wordmark--dark {
  color: var(--ink);
}

.case__media--more {
  background: #f3f3f3;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
}

.case__media--pixel {
  background: #0a0a0a;
}

.case__media--gitfora {
  background: #0a1f5c;
}

.case__link[hidden] {
  display: none;
}

.works-hero {
  padding: 8rem var(--pad) 3.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.works-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 1rem;
}

.works-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
  max-width: 14ch;
}

.works-hero__lead {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--soft);
}

.works-featured {
  padding: 2rem var(--pad) 4rem;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.case {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .case {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
  }

  .case--flip .case__media {
    order: 2;
  }

  .case--flip .case__body {
    order: 1;
  }
}

.case__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.45rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #111;
}

.case__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case__bg--cover {
  object-position: center top;
  filter: brightness(0.55);
}

.case__logo {
  position: relative;
  z-index: 2;
  width: 3.5rem;
  height: 3.5rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.55rem;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.case__logo--bolt {
  background: transparent;
  padding: 0;
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
}

.case__media--vistro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.case__media--boltcv {
  background: #0a0a0a;
}

.case__media--agent {
  background: var(--red);
}

.case__wordmark {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  text-align: center;
}

.case__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--soft);
  margin-bottom: 0.85rem;
}

.case__meta span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.case__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.case__body p {
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.case__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.case__tags li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--soft);
}

.case__link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--green);
  padding-bottom: 0.1rem;
  transition: color 0.25s;
}

.case__link:hover {
  color: var(--green-deep);
}

.works-other {
  padding: 2rem var(--pad) 6rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.work__visual--fether {
  background: #e8eef8;
}

.work__visual--fether::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.18));
  z-index: 1;
}

.work__visual--fether .work__bg {
  opacity: 1;
  filter: none;
  object-position: center center;
}

.work__mark--fether {
  position: relative;
  z-index: 2;
  width: clamp(3.25rem, 7vw, 4.5rem) !important;
  height: auto !important;
  border-radius: 1rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

/* —— Work detail page —— */
.detail {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem var(--pad) 0;
}

.detail__top {
  margin-bottom: 2rem;
}

.detail__back {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--soft);
  transition: color 0.25s;
}

.detail__back:hover {
  color: var(--ink);
}

.detail__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 0.75rem;
}

.detail__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 6.5rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin-bottom: 1rem;
}

.detail__lead {
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--soft);
  margin-bottom: 1.5rem;
}

.detail__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}

.detail__cta:hover {
  background: var(--green);
  color: var(--ink);
  transform: translateY(-2px);
}

.detail__cta[hidden] {
  display: none;
}

.detail__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #111;
  margin-bottom: 2.5rem;
}

.detail__stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__stage-bg--cover {
  object-position: center top;
  filter: brightness(0.55);
}

.detail__stage-logo {
  position: relative;
  z-index: 2;
  width: 4.5rem;
  height: 4.5rem;
  background: #fff;
  border-radius: 1rem;
  padding: 0.65rem;
  object-fit: contain;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.detail__stage-logo--bolt {
  background: transparent;
  padding: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.detail__stage-logo--fether {
  background: transparent;
  padding: 0;
  width: clamp(5rem, 12vw, 7.5rem);
  height: auto;
  border-radius: 1.35rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.detail__stage-logo--pixel {
  width: min(55%, 18rem);
  height: auto;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.detail__stage-word {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  text-align: center;
}

.detail__stage-word--dark {
  color: var(--ink);
}

.detail__stage--vistro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.detail__stage--boltcv {
  background: #0a0a0a;
}

.detail__stage--boltcv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.3));
  z-index: 1;
  pointer-events: none;
}

.detail__stage--boltcv .detail__stage-bg {
  filter: none;
  object-position: center center;
}

.detail__stage--agent {
  background: var(--red);
}

.detail__stage--fether {
  background: #e8eef8;
}

.detail__stage--fether::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.16));
  z-index: 1;
  pointer-events: none;
}

.detail__stage--fether .detail__stage-bg {
  object-fit: cover;
  filter: none;
  object-position: center center;
}

.detail__stage--pixel {
  background: #0a0a0a;
}

.detail__stage--gitfora {
  background: #0a1f5c;
}

.detail__stage--more {
  background: #f3f3f3;
  border: 1px solid var(--line);
  gap: 1rem;
}

.detail__content {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .detail__content {
    grid-template-columns: 1.4fr 0.8fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.detail__copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.detail__copy p {
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.detail__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detail__tags li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--soft);
}

.detail__aside {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.detail__fact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.detail__fact:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail__fact span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}

.detail__fact strong {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.detail__others {
  padding-bottom: 5rem;
}

.detail__others-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .detail__others-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .detail__others-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail__others-grid .work__visual {
  aspect-ratio: 4 / 3;
}

/* —— Scroll reveal —— */
.observe {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.observe.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-delay,
  .reveal-delay-2,
  .reveal-delay-3,
  .hero__float,
  .observe {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
